Skip to content

Interface: ReconnectOptions ​

Defined in: api/rust-fetch.d.ts:655

Reconnection after a connection fails or drops, with jittered exponential backoff.

Properties ​

initialDelayMs? ​

optional initialDelayMs?: number

Defined in: api/rust-fetch.d.ts:659

Delay before the first attempt, in ms. Default: 1000


maxDelayMs? ​

optional maxDelayMs?: number

Defined in: api/rust-fetch.d.ts:661

Upper bound for any delay, in ms. Default: 30000


maxRetries? ​

optional maxRetries?: number

Defined in: api/rust-fetch.d.ts:657

Reconnection attempts in a row before giving up; reset once a connection opens. Default: unlimited


multiplier? ​

optional multiplier?: number

Defined in: api/rust-fetch.d.ts:663

Exponential backoff multiplier. Default: 2

Released under the MIT or Apache-2.0 license.