Skip to content

Interface: FieldPresenceStore

@roomful/svelte


@roomful/svelte / FieldPresenceStore

Defined in: packages/svelte/src/index.ts:537

Readable store of the active fields (which remote peers are on which field) augmented with the setActiveField control and a getFieldPeers reader. The store’s value updates when peers enter or leave a field.

setActiveField: (fieldId) => void

Defined in: packages/svelte/src/index.ts:541

Declares the field the local peer is active on, or null to clear it.

Declares the field the local peer is active on, or null to clear it (e.g. on blur).

The active field id, or null.

string | null

void

Nothing.

getFieldPeers(fieldId): Peer[]

Defined in: packages/svelte/src/index.ts:546

Returns the remote peers on a field from the current snapshot.

string

Peer[]


subscribe(this, run, invalidate?): Unsubscriber

Defined in: node_modules/.pnpm/svelte@4.2.20/node_modules/svelte/types/index.d.ts:1619

Subscribe on value changes.

void

Subscriber<FieldPresenceState[]>

subscription callback

Invalidator<FieldPresenceState[]>

cleanup callback

Unsubscriber

Readable.subscribe