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

    This will be set if the remote peer is known in advance

    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.