Skip to main content
Version: v3.0.0 (current)

NodeReconnection

Since 3.0.0. Exported type of the private reconnect state of a node. Bots do not read it: listen to the NodeReconnect manager event, which gives the attempt number (from 1) and the maximum.

Definition​

export interface NodeReconnection {
/** The timer of the next reconnect attempt, while one is scheduled. */
timeout?: NodeJS.Timeout;
/** The reconnect attempts made since the socket last opened, up to `maxRetryAttempts`. */
attempts: number;
}