Skip to main content

Interface: Presence

Properties

clientId

readonly clientId: string;

Methods

close()

close(): void;

Returns

void


getPeers()

getPeers(): readonly Peer[];

Stable array snapshot (replaced on change) — safe for useSyncExternalStore.

Returns

readonly Peer[]


subscribe()

subscribe(fn): () => void;

Parameters

ParameterType
fn() => void

Returns

() => void