How to subscribe to a topic in Android

I am trying to implement a chat for Android witch should connect to a WebSocket with WAMP v2, the chat works perfectly using js.

In Android I can connect to the server but I don’t really understand how to subscribe to a topic, and whether there is a possibility to easily manage all the subscriptions the client has.

WebSocketConnection manages the socket connection on the right thread but we do not create session and client and subsequentially we cannot use subscribe to a topic.

Would you give me an example?