Presence
Properties
Section titled “Properties”clientId
Section titled “clientId”readonly clientId: string;Methods
Section titled “Methods”close()
Section titled “close()”close(): void;Returns
Section titled “Returns”void
getPeers()
Section titled “getPeers()”getPeers(): readonly Peer[];Stable array snapshot (replaced on change) — safe for useSyncExternalStore.
Returns
Section titled “Returns”readonly Peer[]
subscribe()
Section titled “subscribe()”subscribe(fn): () => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
fn | () => void |
Returns
Section titled “Returns”() => void