@wppconnect/wa-js - v3.17.0
    Preparing search index...

    Variable listenersConst

    listeners: <
        Name extends
            | "blocklist.sync"
            | "call.incoming_call"
            | (keyof ChatEventTypes)
            | "config.update"
            | (keyof ConnEventTypes)
            | "group.participant_changed"
            | "order.payment_status"
            | "status.sync"
            | (keyof WebpackEvents)
            | "alfa"
            | "beta",
    >(
        event?: Name,
    ) => ListenerFn[] = ...

    Type declaration

      • <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof WebpackEvents)
                | "alfa"
                | "beta",
        >(
            event?: Name,
        ): ListenerFn[]
      • Returns an array of listeners for the specified event. This array can be manipulated, e.g. to remove listeners.

        Type Parameters

        • Name extends
              | "blocklist.sync"
              | "call.incoming_call"
              | (keyof ChatEventTypes)
              | "config.update"
              | (keyof ConnEventTypes)
              | "group.participant_changed"
              | "order.payment_status"
              | "status.sync"
              | (keyof WebpackEvents)
              | "alfa"
              | "beta"

        Parameters

        Returns ListenerFn[]