Skip to content

Interface: RetryInfo ​

Defined in: netconf/src/reconnect.ts:32

What onRetry is told before each wait.

Properties ​

attempt ​

ts
readonly attempt: number;

Defined in: netconf/src/reconnect.ts:34

How many consecutive failures and lost sessions this wait follows, from 1.


delay ​

ts
readonly delay: number;

Defined in: netconf/src/reconnect.ts:36

How long it will wait, in milliseconds.


error ​

ts
readonly error: NetconfError;

Defined in: netconf/src/reconnect.ts:38

Why: the failed attempt's error, or the lost session's cause (a SessionClosedError when it gave none).

Released under the MIT Licence.