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

Interface: RoomfulProviderProps\<TPresence\>

@roomful/react


@roomful/react / RoomfulProviderProps

Interface: RoomfulProviderProps<TPresence>

Section titled “Interface: RoomfulProviderProps<TPresence>”

Defined in: react/src/index.ts:59

Configures the React provider.

  • RoomOptions<TPresence>

TPresence extends PresenceData = PresenceData

The room presence shape inferred from presence.

optional children: ReactNode

Defined in: react/src/index.ts:70

Renders the provider subtree.


optional debug: boolean | DebugOptions

Defined in: core/dist/types.d.ts:392

Enables broad debug logging or fine-grained debug flags.

RoomOptions.debug


optional encryption: EncryptionOptions

Defined in: core/dist/types.d.ts:388

Enables payload encryption.

RoomOptions.encryption


optional maxPeers: number

Defined in: core/dist/types.d.ts:360

Caps the number of peers allowed in the room.

RoomOptions.maxPeers


optional onConnect: () => void

Defined in: react/src/index.ts:75

Runs after the room connects.

void


optional onDisconnect: (payload) => void

Defined in: react/src/index.ts:80

Runs after the room disconnects.

string

void


optional onError: (error) => void

Defined in: react/src/index.ts:85

Runs when the room emits an operational error.

RoomfulError

void


optional presence: Partial<TPresence>

Defined in: core/dist/types.d.ts:356

Seeds the initial local presence payload.

RoomOptions.presence


optional reconnect: boolean | ReconnectOptions

Defined in: core/dist/types.d.ts:376

Enables reconnect behavior or custom reconnect timing.

RoomOptions.reconnect


optional relayAuth: RelayAuthToken

Defined in: core/dist/types.d.ts:372

Supplies relay authentication as a token or async token factory.

RoomOptions.relayAuth


optional relayUrl: string

Defined in: core/dist/types.d.ts:368

Overrides the relay URL used for signaling and fallback transports.

RoomOptions.relayUrl


roomId: string

Defined in: react/src/index.ts:65

Identifies the room to create or join.


optional stunUrls: string[]

Defined in: core/dist/types.d.ts:364

Supplies custom STUN server URLs for WebRTC sessions.

RoomOptions.stunUrls


optional transport: TransportMode

Defined in: core/dist/types.d.ts:352

Selects the preferred transport strategy.

RoomOptions.transport


optional webrtc: WebRTCOptions

Defined in: core/dist/types.d.ts:380

Configures WebRTC-specific behavior.

RoomOptions.webrtc


optional websocket: WebSocketOptions

Defined in: core/dist/types.d.ts:384

Configures WebSocket-specific behavior.

RoomOptions.websocket