Interface: RoomfulProviderProps\<TPresence\>
@roomful/react / RoomfulProviderProps
Interface: RoomfulProviderProps<TPresence>
Section titled “Interface: RoomfulProviderProps<TPresence>”Defined in: react/src/index.ts:59
Configures the React provider.
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”children?
Section titled “children?”
optionalchildren:ReactNode
Defined in: react/src/index.ts:70
Renders the provider subtree.
debug?
Section titled “debug?”
optionaldebug:boolean|DebugOptions
Defined in: core/dist/types.d.ts:392
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: core/dist/types.d.ts:388
Enables payload encryption.
Inherited from
Section titled “Inherited from”RoomOptions.encryption
maxPeers?
Section titled “maxPeers?”
optionalmaxPeers:number
Defined in: core/dist/types.d.ts:360
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: react/src/index.ts:75
Runs after the room connects.
Returns
Section titled “Returns”void
onDisconnect()?
Section titled “onDisconnect()?”
optionalonDisconnect: (payload) =>void
Defined in: react/src/index.ts:80
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: react/src/index.ts:85
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: core/dist/types.d.ts:356
Seeds the initial local presence payload.
Inherited from
Section titled “Inherited from”RoomOptions.presence
reconnect?
Section titled “reconnect?”
optionalreconnect:boolean|ReconnectOptions
Defined in: core/dist/types.d.ts:376
Enables reconnect behavior or custom reconnect timing.
Inherited from
Section titled “Inherited from”RoomOptions.reconnect
relayAuth?
Section titled “relayAuth?”
optionalrelayAuth:RelayAuthToken
Defined in: core/dist/types.d.ts:372
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: core/dist/types.d.ts:368
Overrides the relay URL used for signaling and fallback transports.
Inherited from
Section titled “Inherited from”RoomOptions.relayUrl
roomId
Section titled “roomId”roomId:
string
Defined in: react/src/index.ts:65
Identifies the room to create or join.
stunUrls?
Section titled “stunUrls?”
optionalstunUrls:string[]
Defined in: core/dist/types.d.ts:364
Supplies custom STUN server URLs for WebRTC sessions.
Inherited from
Section titled “Inherited from”RoomOptions.stunUrls
transport?
Section titled “transport?”
optionaltransport:TransportMode
Defined in: core/dist/types.d.ts:352
Selects the preferred transport strategy.
Inherited from
Section titled “Inherited from”RoomOptions.transport
webrtc?
Section titled “webrtc?”
optionalwebrtc:WebRTCOptions
Defined in: core/dist/types.d.ts:380
Configures WebRTC-specific behavior.
Inherited from
Section titled “Inherited from”RoomOptions.webrtc
websocket?
Section titled “websocket?”
optionalwebsocket:WebSocketOptions
Defined in: core/dist/types.d.ts:384
Configures WebSocket-specific behavior.
Inherited from
Section titled “Inherited from”RoomOptions.websocket