PubSub

inner class PubSub

Provides publish-subscribe messaging within the meeting.

Use this to send messages to specific topics and subscribe to receive messages from other participants.

Functions

Link copied to clipboard
fun publish(topic: String, message: String, options: PubSubPublishOptions)

fun publish(topic: String, message: String, @NonNull payload: JSONObject, options: PubSubPublishOptions)
Publishes a message to the specified topic.
Link copied to clipboard
fun subscribe(topic: String, listener: PubSubMessageListener)
This method can be used to subscribe to a topic and receive messages via the provided listener.
Link copied to clipboard
This method can be used to unsubscribe a listener from the specified topic.