Skip to main content
Defined in: testing/chaos.ts:223 Connection drops and reconnects.

Properties

afterInbound?

Defined in: testing/chaos.ts:225 Drop the connection right after the Nth delivered inbound event (1-based).

probability?

Defined in: testing/chaos.ts:227 Probability [0, 1] of a drop after each delivered inbound event. Default 0.

downtimeMs?

Defined in: testing/chaos.ts:229 Downtime before the automatic reconnect of these drops. Default 10 ms; Infinity = until reconnect().

reason?

Defined in: testing/chaos.ts:231 Reason carried by the closed update. Default 'transient'.

failSendsWhileDown?

Defined in: testing/chaos.ts:233 Reject sends while down with ChaosDisconnectedError. Default true.

holdInboundWhileDown?

Defined in: testing/chaos.ts:235 Hold inbound events while down and deliver them after the reconnect. Default true.

replayOnReconnect?

Defined in: testing/chaos.ts:237 On reconnect, redeliver this many of the most recently delivered events (offline-sync replay). Default 0.