Interface: RoomfulProviderOptions\<TPresence\>
@roomful/angular / RoomfulProviderOptions
Interface: RoomfulProviderOptions<TPresence>
Section titled “Interface: RoomfulProviderOptions<TPresence>”Defined in: angular/src/index.ts:90
Configures provideRoomful.
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”debug?
Section titled “debug?”
optionaldebug:boolean|DebugOptions
Defined in: 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: 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: 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
maxPeers?
Section titled “maxPeers?”
optionalmaxPeers:number
Defined in: 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: angular/src/index.ts:96
Runs after the room connects.
Returns
Section titled “Returns”void
onDisconnect()?
Section titled “onDisconnect()?”
optionalonDisconnect: (payload) =>void
Defined in: angular/src/index.ts:101
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: angular/src/index.ts:106
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:415
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:435
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: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: 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: 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: 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: 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: core/dist/types.d.ts:443
Configures WebSocket-specific behavior.
Inherited from
Section titled “Inherited from”RoomOptions.websocket