@chainsafe/libp2p-yamux
    Preparing search index...

    Interface YamuxStreamOptions

    interface YamuxStreamOptions {
        inactivityTimeout?: number;
        initialStreamWindowSize?: number;
        maxReadBufferLength?: number;
        maxStreamWindowSize?: number;
        maxWriteBufferLength?: number;
    }

    Hierarchy

    Index

    Properties

    inactivityTimeout?: number

    If no data is sent or received in this number of ms the stream will be reset and an 'error' event emitted.

    120_000
    
    initialStreamWindowSize?: number

    Used to control the initial window size that we allow for a stream.

    measured in bytes

    maxReadBufferLength?: number

    The maximum number of bytes to store when paused or before a 'message' event handler is added.

    If the internal buffer overflows this value the stream will be reset.

    4_194_304
    
    maxStreamWindowSize?: number

    Used to control the maximum window size that we allow for a stream.

    maxWriteBufferLength?: number

    The maximum number of bytes to store when the remote end of the stream is applying backpressure, or when it is slow to accept new bytes.

    If the internal buffer overflows this value the stream will be reset.

    Infinity