Skip to content

Interface: UseFieldPresenceResult

@roomful/solid


@roomful/solid / UseFieldPresenceResult

Defined in: solid/src/index.ts:454

Describes the return value of useFieldPresence.

fields: Accessor<FieldPresenceState[]>

Defined in: solid/src/index.ts:459

Exposes every field with at least one remote peer, ordered by field id. Reactive: updates when peers enter or leave a field.


setActiveField: (fieldId) => void

Defined in: solid/src/index.ts:464

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: solid/src/index.ts:469

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

string

Peer[]