Presence
interface 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.
Types
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Method to join room presence, will emit an enter event to all subscribers. Repeat calls will trigger more enter events.
Link copied to clipboard
Method to check if user with supplied clientId is online
Link copied to clipboard
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.
Link copied to clipboard
Subscribe the given listener to all presence events.
Link copied to clipboard
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.