Optional
Readonly
connectionIf there's a connection error it will be available here.
Readonly
connectionProvides the connection status of the Ably connection.
Optional
Readonly
errorIndicates if an error occurred while entering or leaving the room.
Readonly
isIndicates whether the current user is present in the room.
Optional
Readonly
presenceProvides access to the underlying Presence instance of the room.
Optional
Readonly
roomIf there's an error with the room it will be available here.
Readonly
roomProvides the status of the room.
Readonly
updateA shortcut to the Presence.update method.
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.
Optional
data: unknownThe users data, a JSON serializable object that will be sent to all subscribers.
or upon failure, the promise will be rejected with an Ably.ErrorInfo object which explains the error.
Common status variables for chat features. Most hooks in this library implement this interface.