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

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:377

Exposes the public Svelte adapter API.

TPresence extends PresenceData = PresenceData

The room presence shape.

TCursor extends CursorData = CursorData

The custom cursor payload shape.

awareness: AwarenessStore

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

Exposes the awareness store.


cursors: CursorStore<TCursor>

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

Exposes the cursor store.


events: EventsNamespace<TPresence>

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

Exposes the event namespace.


presence: PresenceStore<TPresence>

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

Exposes the presence store.


state: StateNamespace

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

Exposes the shared-state namespace.

connect(): Promise<void>

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

Connects the room runtime.

Promise<void>

A promise that resolves when connection startup completes.


destroy(): Promise<void>

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

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:410

Disconnects the room runtime.

Promise<void>

A promise that resolves when disconnect teardown completes.