Interface WebRTCTransportInit

interface WebRTCTransportInit {
    dataChannel?: DataChannelOptions;
    inboundConnectionTimeout?: number;
    rtcConfiguration?: RTCConfiguration | (() => RTCConfiguration | Promise<RTCConfiguration>);
}

Properties

dataChannel?: DataChannelOptions

Any options here will be applied to any RTCDataChannels that are opened.

inboundConnectionTimeout?: number

Inbound connections must complete the upgrade within this many ms

Default

30_000

Deprecated

configure connectionManager.inboundUpgradeTimeout instead

rtcConfiguration?: RTCConfiguration | (() => RTCConfiguration | Promise<RTCConfiguration>)

Add additional configuration to any RTCPeerConnections that are created.

This could be extra STUN/TURN servers, certificate, etc.

Type declaration

    • (): RTCConfiguration | Promise<RTCConfiguration>
    • Returns RTCConfiguration | Promise<RTCConfiguration>