libp2p
    Preparing search index...

    Interface UpgraderOptions<ConnectionUpgradeEvents>

    Options accepted by the upgrader during connection establishment

    interface UpgraderOptions<
        ConnectionUpgradeEvents extends ProgressEvent = ProgressEvent,
    > {
        initiator?: boolean;
        limits?: ConnectionLimits;
        muxerFactory?: StreamMuxerFactory<StreamMuxer<Stream>>;
        onProgress?: (evt: ConnectionUpgradeEvents) => void;
        signal: AbortSignal;
        skipProtection?: boolean;
    }

    Type Parameters

    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: ConnectionUpgradeEvents) => void
    signal: AbortSignal
    skipProtection?: boolean

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