libp2p
    Preparing search index...

    Interface UpgraderWithoutEncryptionOptions

    Options accepted by the upgrader during connection establishment

    interface UpgraderWithoutEncryptionOptions {
        initiator?: boolean;
        limits?: ConnectionLimits;
        muxerFactory?: StreamMuxerFactory<StreamMuxer<Stream>>;
        onProgress?: (evt: ProgressEvent) => void;
        remotePeer: PeerId;
        signal: AbortSignal;
        skipEncryption: true;
        skipProtection?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    initiator?: boolean

    Multi-stream select is a initiator/responder protocol. By default a connection returned from upgrader.upgradeOutbound will be the initiator and one returned from upgrader.upgradeInbound will be the responder.

    Pass a value here to override the default.

    If the connection is to have limits applied to it, pass them here

    By default a stream muxer protocol will be negotiated via multi-stream select after an encryption protocol has been agreed on.

    If a transport provides it's own stream muxing facility pass a muxer factory instance here to skip muxer negotiation.

    onProgress?: (evt: ProgressEvent) => void
    remotePeer: PeerId

    If skipEncryption is true, a remote PeerId must be supplied

    signal: AbortSignal
    skipEncryption: true

    If true the invoking transport is expected to implement it's own encryption and an encryption protocol will not attempted to be negotiated via multi-stream select

    skipProtection?: boolean

    If true no connection protection will be performed on the connection.