Skip to content

Interface: ActivityStore

@roomful/svelte


@roomful/svelte / ActivityStore

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

Readable store of the shared room activity feed (newest first) augmented with the record control. The store’s value updates on any local or remote entry.

record: (type, data?) => ActivityEntry

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

Records a new activity entry authored by the local peer and broadcasts it.

Records an activity entry and broadcasts it to peers.

string

The activity type label.

unknown

An optional structured payload.

ActivityEntry

The recorded entry.

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<ActivityEntry[]>

subscription callback

Invalidator<ActivityEntry[]>

cleanup callback

Unsubscriber

Readable.subscribe