Skip to content

Function: roomful()

@roomful/svelte


@roomful/svelte / roomful

roomful<TPresence, TCursor>(roomId, options?): RoomfulAdapter<TPresence, TCursor>

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

Creates the Svelte adapter for a room.

TPresence extends PresenceData = PresenceData

The room presence shape inferred from options.presence.

TCursor extends CursorData = CursorData

The custom cursor payload shape.

string

The room identifier to create or join.

RoomfulOptions<TPresence> = {}

Optional room and lifecycle configuration.

RoomfulAdapter<TPresence, TCursor>

The Svelte adapter.