Shortcut to Room.attach. Not needed if the ChatRoomProvider
has attach=true
set, which is the default.
Optional
Readonly
connectionIf there's a connection error it will be available here.
Readonly
connectionProvides the connection status of the Ably connection.
Shortcut to Room.detach. Not needed if the ChatRoomProvider
has attach=true
or release=true
set, which are the default values.
Optional
roomThe room object.
Optional
Readonly
roomIf there's an error with the room it will be available here.
Readonly
roomThe unique identifier of the room.
Readonly
roomProvides the status of the room.
The return type for the useRoom hook.