A hook that provides access to the Presence instance in the room.
It will use the instance belonging to the room in the nearest ChatRoomProvider in the component tree.
On calling, the hook will enter the room with the provided data and leave the room when the component unmounts.
The UsePresenceResponse.isPresent flag will indicate when the user has become present in the room.
A hook that provides access to the Presence instance in the room. It will use the instance belonging to the room in the nearest ChatRoomProvider in the component tree. On calling, the hook will
enter
the room with the provided data andleave
the room when the component unmounts. The UsePresenceResponse.isPresent flag will indicate when the user has become present in the room.