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

Function: roomful()

@roomful/svelte


@roomful/svelte / roomful

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

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

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.

RoomOptions<TPresence> = {}

Optional room configuration.

RoomfulAdapter<TPresence, TCursor>

The Svelte adapter.