libp2p
    Preparing search index...

    Interface StreamPairOptions

    interface StreamPairOptions {
        capacity?: number;
        delay?: number;
        inbound?: StreamOptions;
        inboundConnection?: Partial<MockMultiaddrConnectionInit>;
        outbound?: StreamOptions;
        outboundConnection?: Partial<MockMultiaddrConnectionInit>;
        protocol?: string;
    }
    Index

    Properties

    capacity?: number

    If more than this many messages are sent within delay, write backpressure will be applied

    delay?: number

    How long to wait in ms before sending messages

    1
    
    inbound?: StreamOptions

    Configuration options for the inbound stream

    Configuration options for underlying inbound connection

    outbound?: StreamOptions

    Configuration options for the outbound stream

    outboundConnection?: Partial<MockMultiaddrConnectionInit>

    Configuration options for underlying outbound connection

    protocol?: string

    Simulate having pre-negotiated a protocol by passing it here