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

    Interface AlwaysOnline

    interface AlwaysOnline {
        isRunning: boolean;
        presence: string;
        stats: { failures: number; updates: number };
        onError(
            cb: (info: { error: unknown; presence: string }) => void,
        ): () => void;
        push(): Promise<void>;
        setPresence(presence: string): void;
        start(): () => void;
        stop(): void;
    }
    Index
    isRunning: boolean
    presence: string
    stats: { failures: number; updates: number }
    • Parameters

      • cb: (info: { error: unknown; presence: string }) => void

      Returns () => void

    • Switch the maintained presence live.

      Parameters

      • presence: string

      Returns void