Presence
This interface is used to interact with presence in a chat room: subscribing to presence events, fetching presence members, or sending presence events (join,update,leave).
Get an instance via Room.presence.
Not suitable for inheritance
This interface is not designed for implementation or extension outside this SDK. The interface definition may evolve over time with additional properties or methods to support new features, which could break implementations.
Functions
Method to join room presence, will emit an enter event to all subscribers. Repeat calls will trigger more enter events.
Method to check if user with supplied clientId is online
Method to leave room presence, will emit a leave event to all subscribers. If the user is not present, it will be treated as a no-op.
Subscribe the given listener to all presence events.
Method to update room presence, will emit an update event to all subscribers. If the user is not present, it will be treated as a join event.