@japofc/baileys - v2.4.7
    Preparing search index...

    Interface ConnectionWatchdog

    interface ConnectionWatchdog {
        isRunning: boolean;
        isStale: boolean;
        lastActivity: number;
        silentMs: number;
        stats: { staleCount: number };
        bind(sock: unknown): () => void;
        check(): { silentMs: number; stale: boolean };
        getReport(): string;
        onActivity(cb: (info: { at: number }) => void): () => void;
        onStale(cb: (event: StaleEvent) => void): () => void;
        setStaleMs(ms: number): void;
        start(): () => void;
        stop(): void;
        touch(): void;
        unbind(): void;
    }
    Index
    isRunning: boolean
    isStale: boolean
    lastActivity: number
    silentMs: number
    stats: { staleCount: number }
    • Fires when activity resumes after a stale period.

      Parameters

      • cb: (info: { at: number }) => void

      Returns () => void