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

Interface: PresenceStore\<TPresence\>

@roomful/svelte


@roomful/svelte / PresenceStore

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

Readable presence store augmented with write helpers.

TPresence extends PresenceData = PresenceData

The room presence shape.

replace(value): void

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

Replaces the local presence payload.

Partial<TPresence>

The presence payload to publish.

void

Nothing.


set(value): void

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

Partially updates the local presence payload.

Partial<TPresence>

The partial presence payload to merge.

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<PresenceStoreValue<TPresence>>

subscription callback

Invalidator<PresenceStoreValue<TPresence>>

cleanup callback

Unsubscriber

Readable.subscribe


update(updater): void

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

Updates the local presence payload from the previous value.

Updater<Partial<TPresence>>

The updater that returns the next partial presence payload.

void

Nothing.