Shortcut to Room.attach. Not needed if the ChatRoomProvider
has attach=true set, which is the default.
Optional ReadonlyconnectionIf there's a connection error it will be available here.
ReadonlyconnectionProvides 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.
OptionalroomThe room object.
Optional ReadonlyroomIf there's an error with the room it will be available here.
ReadonlyroomThe id of the room.
ReadonlyroomProvides the status of the room.
The return type for the useRoom hook.