libp2p
    Preparing search index...

    Interface SecureConnectionOptions

    If the remote PeerId is known and passed as an option, the securing operation will throw if the remote peer cannot prove it has the private key that corresponds to the public key the remote PeerId is derived from.

    interface SecureConnectionOptions {
        remotePeer?: PeerId;
        signal?: AbortSignal;
        skipStreamMuxerNegotiation?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    remotePeer?: PeerId
    signal?: AbortSignal
    skipStreamMuxerNegotiation?: boolean

    Some encryption protocols allow negotiating application protocols as part of the initial handshake. The negotiated stream muxer protocol will be included as part of the from the secureOutbound/secureInbound methods unless false is passed here.