Get underlying Ably channel for occupancy events.
The underlying Ably channel for occupancy events.
Get the current occupancy of the chat room.
A promise that resolves to the current occupancy of the chat room.
Register a listener to be called when a discontinuity is detected.
The listener to be called when a discontinuity is detected.
A response that allows control of the subscription.
Subscribe a given listener to occupancy updates of the chat room.
A listener to be called when the occupancy of the room changes.
A promise resolves to the channel attachment state change event from the implicit channel attach operation.
This interface is used to interact with occupancy in a chat room: subscribing to occupancy updates and fetching the current room occupancy metrics.
Get an instance via Room.occupancy.