Nut - v1.0.0
    Preparing search index...

    Interface NUTClientEvents

    interface NUTClientEvents {
        destroyed: () => void;
        disconnected: () => void;
        reconnected: () => void;
        reconnectExhausted: () => void;
        reconnectFailed: (attempt: number) => void;
        reconnecting: (attempt: number, delay: number) => void;
    }
    Index
    destroyed: () => void

    Emitted when the client is destroyed.

    disconnected: () => void

    Emitted when the connection is lost (before any reconnect attempt).

    reconnected: () => void

    Emitted when the connection has been successfully re-established.

    reconnectExhausted: () => void

    Emitted when maxReconnectAttempts is reached and no further attempts will be made.

    reconnectFailed: (attempt: number) => void

    Emitted when a reconnect attempt fails.

    reconnecting: (attempt: number, delay: number) => void

    Emitted when a reconnect attempt is about to be scheduled.