@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface ChaosDisconnectOptions

    Connection drops and reconnects.

    interface ChaosDisconnectOptions {
        afterInbound?: number[];
        probability?: number;
        downtimeMs?: number;
        reason?: DisconnectReason;
        failSendsWhileDown?: boolean;
        holdInboundWhileDown?: boolean;
        replayOnReconnect?: number;
    }
    Index
    afterInbound?: number[]

    Drop the connection right after the Nth delivered inbound event (1-based).

    probability?: number

    Probability [0, 1] of a drop after each delivered inbound event. Default 0.

    downtimeMs?: number

    Downtime before the automatic reconnect of these drops. Default 10 ms; Infinity = until reconnect().

    Reason carried by the closed update. Default 'transient'.

    failSendsWhileDown?: boolean

    Reject sends while down with ChaosDisconnectedError. Default true.

    holdInboundWhileDown?: boolean

    Hold inbound events while down and deliver them after the reconnect. Default true.

    replayOnReconnect?: number

    On reconnect, redeliver this many of the most recently delivered events (offline-sync replay). Default 0.