Interface: ActivityStore
@roomful/svelte / ActivityStore
Interface: ActivityStore
Section titled “Interface: 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.
Extends
Section titled “Extends”Readable<ActivityEntry[]>
Properties
Section titled “Properties”record()
Section titled “record()”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.
Parameters
Section titled “Parameters”string
The activity type label.
unknown
An optional structured payload.
Returns
Section titled “Returns”The recorded entry.
Methods
Section titled “Methods”subscribe()
Section titled “subscribe()”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.
Parameters
Section titled “Parameters”void
Subscriber<ActivityEntry[]>
subscription callback
invalidate?
Section titled “invalidate?”Invalidator<ActivityEntry[]>
cleanup callback
Returns
Section titled “Returns”Unsubscriber
Inherited from
Section titled “Inherited from”Readable.subscribe