Shortcut to Room.attach. The ChatRoomProvider will handle attaching and detaching automatically, so this is only needed for manual control.
This is a stable reference and will not be changed between renders for the same room.
Optional ReadonlyconnectionIf there's a connection error it will be available here.
ReadonlyconnectionProvides the connection status of the Ably connection.
Shortcut to Room.detach. The ChatRoomProvider will handle attaching and detaching automatically, so this is only needed for manual control.
This is a stable reference and will not be changed between renders for the same room.
Optional ReadonlyroomIf there's an error with the room it will be available here.
ReadonlyroomThe unique identifier of the room.
ReadonlyroomProvides the status of the room.
The return type for the useRoom hook.