Skip to main content
Version: 3.x.x

Video SDK PubSub Class - Android

Introduction​

PubSub lets participants send messages to each other on named topics. A message reaches only the listeners subscribed to its topic. Use it through the room's pubSub property, for example room.pubSub.publish(...).

publish(), subscribe() and unsubscribe() are suspend functions, so call them from a coroutine. They return once the server has answered, and throw a VideoSDKException when they fail.

PubSub Methods​

PubSub Classes​

Got a Question? Ask us on discord