Interface WebRTCTransportInit

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

Properties

dataChannel?: DataChannelOptions
inboundConnectionTimeout?: number

Inbound connections must complete the upgrade within this many ms

Default

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

Type declaration

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