libp2p
    Preparing search index...

    Interface WebRTCTransportInit

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

    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

    30_000
    

    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.