@not3/sdk
    Preparing search index...

    Interface P2PConnectOptions

    Options for connectPeer.

    interface P2PConnectOptions {
        iceServers: RTCIceServer[];
        role: "receiver" | "sender";
        rtc: RTCFactory;
        signaling: P2PSignaling;
        timeoutMs?: number;
    }
    Index

    Properties

    iceServers: RTCIceServer[]

    The ICE servers handed out by the gateway.

    role: "receiver" | "sender"

    Which side of the handshake to perform.

    The factory creating the peer connection.

    signaling: P2PSignaling

    An already connected and paired signaling client.

    timeoutMs?: number

    How long to wait for an open data channel.

    P2PProtocol.CONNECT_TIMEOUT_MS