Skip to content
Roomful is in public beta — install with the @beta tag. Share feedback →

Interface: AwarenessStore

@roomful/svelte


@roomful/svelte / AwarenessStore

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

Readable awareness store augmented with write helpers.

set(value): void

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

Merges arbitrary awareness metadata into the local peer.

Record<string, unknown>

The awareness fields to merge.

void

Nothing.


setFocus(elementId): void

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

Updates the local focus target.

The focused element identifier, or null to clear it.

string | null

void

Nothing.


setSelection(selection): void

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

Updates the local selection.

The active selection, or null to clear it.

AwarenessSelection | null

void

Nothing.


setTyping(isTyping): void

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

Updates the local typing state.

boolean

Whether the local peer is currently typing.

void

Nothing.


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<AwarenessStoreValue>

subscription callback

Invalidator<AwarenessStoreValue>

cleanup callback

Unsubscriber

Readable.subscribe


update(updater): void

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

Updates awareness fields from the previous value.

Updater<Record<string, unknown>>

The updater that returns the next awareness patch.

void

Nothing.