Interface: RoomfulOptions\<TPresence\>
@roomful/svelte / RoomfulOptions
Interface: RoomfulOptions<TPresence>
Section titled “Interface: RoomfulOptions<TPresence>”Defined in: packages/svelte/src/index.ts:807
Configures the Svelte adapter.
Extends
Section titled “Extends”RoomOptions<TPresence>
Type Parameters
Section titled “Type Parameters”TPresence
Section titled “TPresence”TPresence extends PresenceData = PresenceData
The room presence shape inferred from presence.
Properties
Section titled “Properties”activity?
Section titled “activity?”
optionalactivity:ActivityOptions
Defined in: packages/svelte/src/index.ts:813
Configures the activity feed (entry cap).
agentApprovals?
Section titled “agentApprovals?”
optionalagentApprovals:AgentApprovalOptions
Defined in: packages/svelte/src/index.ts:818
Configures the agent-approval workflow (who may decide proposals).
comments?
Section titled “comments?”
optionalcomments:CommentsOptions
Defined in: packages/svelte/src/index.ts:823
Configures the comments store’s storage backend.
debug?
Section titled “debug?”
optionaldebug:boolean|DebugOptions
Defined in: packages/core/dist/types.d.ts:451
Enables broad debug logging or fine-grained debug flags.
Inherited from
Section titled “Inherited from”RoomOptions.debug
encryption?
Section titled “encryption?”
optionalencryption:EncryptionOptions
Defined in: packages/core/dist/types.d.ts:447
Enables payload encryption.
Inherited from
Section titled “Inherited from”RoomOptions.encryption
ephemeral?
Section titled “ephemeral?”
optionalephemeral:number|boolean
Defined in: packages/core/dist/types.d.ts:456
Marks the room as ephemeral — no durable storage (state, comments, locks), and optionally
disconnects after ttlMs. Pass true for no-persistence only, or a number for TTL in ms.
Inherited from
Section titled “Inherited from”RoomOptions.ephemeral
history?
Section titled “history?”
optionalhistory:HistoryOptions
Defined in: packages/svelte/src/index.ts:828
Configures the history store (timeline cap and capture debounce).
maxPeers?
Section titled “maxPeers?”
optionalmaxPeers:number
Defined in: packages/core/dist/types.d.ts:419
Caps the number of peers allowed in the room.
Inherited from
Section titled “Inherited from”RoomOptions.maxPeers
onConnect()?
Section titled “onConnect()?”
optionalonConnect: () =>void
Defined in: packages/svelte/src/index.ts:833
Runs after the room connects.
Returns
Section titled “Returns”void
onDisconnect()?
Section titled “onDisconnect()?”
optionalonDisconnect: (payload) =>void
Defined in: packages/svelte/src/index.ts:838
Runs after the room disconnects.
Parameters
Section titled “Parameters”payload
Section titled “payload”reason?
Section titled “reason?”string
Returns
Section titled “Returns”void
onError()?
Section titled “onError()?”
optionalonError: (error) =>void
Defined in: packages/svelte/src/index.ts:843
Runs when the room emits an operational error.
Parameters
Section titled “Parameters”RoomfulError
Returns
Section titled “Returns”void
presence?
Section titled “presence?”
optionalpresence:Partial<TPresence>
Defined in: packages/core/dist/types.d.ts:415
Seeds the initial local presence payload.
Inherited from
Section titled “Inherited from”RoomOptions.presence
reconnect?
Section titled “reconnect?”
optionalreconnect:boolean|ReconnectOptions
Defined in: packages/core/dist/types.d.ts:435
Enables reconnect behavior or custom reconnect timing.
Inherited from
Section titled “Inherited from”RoomOptions.reconnect
relayAuth?
Section titled “relayAuth?”
optionalrelayAuth:RelayAuthToken
Defined in: packages/core/dist/types.d.ts:431
Supplies relay authentication as a token or async token factory.
Inherited from
Section titled “Inherited from”RoomOptions.relayAuth
relayUrl?
Section titled “relayUrl?”
optionalrelayUrl:string
Defined in: packages/core/dist/types.d.ts:427
Overrides the relay URL used for signaling and fallback transports.
Inherited from
Section titled “Inherited from”RoomOptions.relayUrl
stunUrls?
Section titled “stunUrls?”
optionalstunUrls:string[]
Defined in: packages/core/dist/types.d.ts:423
Supplies custom STUN server URLs for WebRTC sessions.
Inherited from
Section titled “Inherited from”RoomOptions.stunUrls
transport?
Section titled “transport?”
optionaltransport:TransportMode
Defined in: packages/core/dist/types.d.ts:411
Selects the preferred transport strategy.
Inherited from
Section titled “Inherited from”RoomOptions.transport
webrtc?
Section titled “webrtc?”
optionalwebrtc:WebRTCOptions
Defined in: packages/core/dist/types.d.ts:439
Configures WebRTC-specific behavior.
Inherited from
Section titled “Inherited from”RoomOptions.webrtc
websocket?
Section titled “websocket?”
optionalwebsocket:WebSocketOptions
Defined in: packages/core/dist/types.d.ts:443
Configures WebSocket-specific behavior.
Inherited from
Section titled “Inherited from”RoomOptions.websocket