Skip to content

Connectum API Reference / @connectum/interceptors / RetryOptions

Interface: RetryOptions ​

Defined in: types.ts:146

Retry interceptor options

Properties ​

initialDelay? ​

optional initialDelay?: number

Defined in: types.ts:160

Initial scale in milliseconds for exponential decorrelated jitter. Actual retry delays are randomized rather than a fixed sequence.

Default ​

ts
200

maxDelay? ​

optional maxDelay?: number

Defined in: types.ts:166

Maximum delay in milliseconds for exponential backoff

Default ​

ts
5000

maxRetries? ​

optional maxRetries?: number

Defined in: types.ts:153

Maximum number of retries after the initial attempt. Non-negative finite fractional values retain the retry-count comparison: for example, 0.5 allows one retry.

Default ​

ts
3

retryableCodes? ​

optional retryableCodes?: Code[]

Defined in: types.ts:179

Error codes that trigger a retry

Default ​

ts
[Code.Unavailable, Code.ResourceExhausted]

skipStreaming? ​

optional skipStreaming?: boolean

Defined in: types.ts:173

Skip retry for streaming requests. If false, retry covers opening the response, not failures during iteration of an already opened stream.

Default ​

ts
true