Enhancer that lets you connect a Redux state to Liveblocks Presence and Storage features.
See different authentication methods in the createClient
method.
Mapping used to synchronize a part of your Redux state with one Liveblocks room presence.
Mapping used to synchronize a part of your Redux state with one Liveblocks Room storage.
Dispatch enterRoom
action to enter a room and start sync it with Redux state.
roomId
: The id
of the room.initialState
: The initial state of the room storage.Dispatch leaveRoom
action to leave a room and stop sync it with Redux state.
roomId
: The id
of the room.Liveblocks extra state attached by the enhancer.
Other users in the room. Empty when no room is currently synced.
Whether or not the room storage is currently loading.
Connection state of the room.
The value can be : authenticating
, connecting
, open
, failed
, closed
or
unavailable
.