libp2p
    Preparing search index...

    Interface MplexInit

    interface MplexInit {
        disconnectThreshold?: number;
        maxMessageSize?: number;
        maxUnprocessedMessageQueueSize?: number;
    }
    Index

    Properties

    disconnectThreshold?: number

    When maxInboundStreams is hit, if the remote continues try to open more than this many new multiplexed streams per second the connection will be closed

    5
    
    maxMessageSize?: number

    The maximum size of message that can be sent in one go in bytes. Messages larger than this will be split into multiple smaller messages. If we receive a message larger than this an error will be thrown and the connection closed.

    1_048_576
    
    maxUnprocessedMessageQueueSize?: number

    Constrains the size of the unprocessed message queue buffer. Before messages are deserialized, the raw bytes are buffered to ensure we have the complete message to deserialized. If the queue gets longer than this value an error will be thrown and the connection closed.

    4_194_304