Interface: RetryOptions
Defined in: netconf/src/reconnect.ts:18
How reconnecting() waits between attempts. Every delay is in milliseconds.
Properties
factor?
ts
readonly factor?: number;Defined in: netconf/src/reconnect.ts:24
What each further consecutive failure multiplies the wait by. Default 2.
initialDelay?
ts
readonly initialDelay?: number;Defined in: netconf/src/reconnect.ts:20
The wait after the first failure or lost session. Default 1000.
jitter?
ts
readonly jitter?: boolean;Defined in: netconf/src/reconnect.ts:26
Wait a random 50–100% of the computed delay, so many clients don't retry in step. Default true.
maxAttempts?
ts
readonly maxAttempts?: number;Defined in: netconf/src/reconnect.ts:28
Give up after this many consecutive failed connect attempts, rejecting with the last error. Default unlimited.
maxDelay?
ts
readonly maxDelay?: number;Defined in: netconf/src/reconnect.ts:22
The longest wait. Also how long a session must stay open to reset the backoff. Default 60000.