libp2p
    Preparing search index...

    Interface MultiaddrConnectionPairOptions

    interface MultiaddrConnectionPairOptions {
        capacity?: number;
        chunkSize?: number;
        delay?: number;
        inbound?: Partial<MockMultiaddrConnectionInit>;
        outbound?: Partial<MockMultiaddrConnectionInit>;
    }

    Hierarchy

    Index

    Properties

    capacity?: number

    How many messages to hold in the send queue before applying backpressure to the sender

    chunkSize?: number

    Data messages larger than this size will be chunked into smaller messages.

    Defaults to the maximum TCP package size.

    65_536
    
    delay?: number

    How much delay there should be between each message send in ms (note that even 0 introduces a small delay)

    0