useWebSocketPresence
The other peers from createWebSocketPresence, such as their cursors. Re-renders when a peer's state arrives, it leaves, or it times out.
Usage
Returns
{ peer, state, updatedAt }[], in the order the peers first appeared. The same array until something changes. Empty for null, and on the server.
Behavior
- Holds the connection while mounted, like
useWebSocket. - Re-renders on every update from another peer, which
maxRateon their side keeps to a handful per second each.