@not3/sdk
    Preparing search index...

    Function connectPeer

    • Turn a paired signaling connection into an open WebRTC data channel.

      The sender creates the channel and the offer, the receiver answers and waits for ondatachannel. Trickled ICE candidates are relayed through the signaling client in both directions.

      Parameters

      Returns Promise<P2PConnectResult>

      The peer connection and its open data channel.

      P2PConnectTimeoutError If no channel opens within the timeout.