Skip to content

Interface: RoomfulAdapter\<TPresence, TCursor\>

@roomful/svelte


@roomful/svelte / RoomfulAdapter

Interface: RoomfulAdapter<TPresence, TCursor>

Section titled “Interface: RoomfulAdapter<TPresence, TCursor>”

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

Exposes the public Svelte adapter API.

TPresence extends PresenceData = PresenceData

The room presence shape.

TCursor extends CursorData = CursorData

The custom cursor payload shape.

activity: ActivityStore

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

Exposes the shared room activity feed store plus the record control.


agentApprovals: AgentApprovalsStore

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

Exposes the agent-approval proposals store plus the pending sub-store and the approve/reject/propose controls.


awareness: AwarenessStore

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

Exposes the awareness store.


comments: CommentsStore

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

Exposes the collaborative comments store plus the thread mutators.


cursors: CursorStore<TCursor>

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

Exposes the cursor store.


events: EventsNamespace<TPresence>

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

Exposes the event namespace.


fieldPresence: FieldPresenceStore

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

Exposes the field-presence store plus setActiveField and getFieldPeers.


history: HistoryStore

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

Exposes the collaborative history store: the timeline plus reactive canUndo/canRedo stores and the undo/redo controls.


locks: LocksStore

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

Exposes the store of all held locks plus acquire/release controls.


pointer: PointerStore

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

Exposes the pointer (laser pointer) store.


presence: PresenceStore<TPresence>

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

Exposes the presence store.


recording: RecordingStore

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

Exposes the session-recording store: reactive isRecording, frameCount, and durationMs plus the start/stop/replay/export controls.


state: StateNamespace

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

Exposes the shared-state namespace.


status: Readable<RoomStatus>

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

Exposes the room connection status store.


viewport: ViewportStore

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

Exposes the viewport store.

connect(): Promise<void>

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

Connects the room runtime.

Promise<void>

A promise that resolves when connection startup completes.


destroy(): Promise<void>

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

Tears down the adapter and room permanently.

Promise<void>

A promise that resolves when teardown completes.


disconnect(): Promise<void>

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

Disconnects the room runtime.

Promise<void>

A promise that resolves when disconnect teardown completes.


lockState(key): LockStateStore

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

Creates a readable store for a single lock key’s resolved state.

string

The lock key to observe.

LockStateStore

A readable store holding the lock state, or null when free.