Get the underlying Ably realtime channel used for the room.
The realtime channel.
The current error, if any, that caused the room to enter the current status.
Allows you to send, subscribe-to and query messages in the room.
The messages instance for the room.
The unique identifier of the room.
The room name.
Allows you to interact with occupancy metrics for the room.
The occupancy instance for the room.
Allows you to subscribe to presence events in the room.
The presence instance for the room.
Allows you to interact with room-level reactions.
The room reactions instance for the room.
Allows you to interact with typing events in the room.
The typing instance for the room.
Attaches to the room to receive events in realtime.
If a room fails to attach, it will enter either the RoomStatus.Suspended or RoomStatus.Failed state.
If the room enters the failed state, then it will not automatically retry attaching and intervention is required.
If the room enters the suspended state, then the call to attach will reject with the ErrorInfo that caused the suspension. However, the room will automatically retry attaching after a delay.
A promise that resolves when the room is attached.
Detaches from the room to stop receiving events in realtime.
A promise that resolves when the room is detached.
Registers a handler that will be called whenever a discontinuity is detected in the room's connection. A discontinuity occurs when the room's connection is interrupted and cannot be resumed from its previous state.
The function to call when a discontinuity is detected.
An object that can be used to unregister the handler.
Registers a listener that will be called whenever the room status changes.
The function to call when the status changes.
An object that can be used to unregister the listener.
Represents a chat room.