subscribe
This method can be used to subscribe to a topic and receive messages via the provided listener.
Code Example:
meeting.pubSub.subscribe("CHAT") { message ->
Log.d("PubSub", "Received: " + message.getMessage())
}
Content copied to clipboard
Parameters
topic
the topic name to subscribe to
listener
the PubSubMessageListener to receive messages on this topic