Skip to content

Presence

Uses the caller’s clock only while renewal, queued state or expiry needs work.

new Presence(peerSessionId, documentId, channel?): Presence

string

string

PresenceChannel

Presence

readonly documentId: string


readonly peerSessionId: string

get states(): readonly PresenceState[]

readonly PresenceState[]

attach(): () => void

() => void


dispose(): void

void


leave(): void

void


receive(peer, input): boolean

string

unknown

boolean


setLocalState(state): void

LocalPresence | null

void


subscribe(listener): () => void

() => void

() => void


tick(now): void

number

void