Function prependListener

  • Adds a listener to the beginning of the listeners array for the specified event.

    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 Listener

  • Adds a listener to the beginning of the listeners array for the specified event.

    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 this