usePeers
function usePeers(options?): readonly Peer[];The tabs/windows/workers currently alive on this origin.
Each peer carries whatever it published about itself as metadata — see
usePresenceMetadata for publishing this client’s.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? | UsePeersOptions |
Returns
Section titled “Returns”readonly Peer[]