• Wait for a specific event to occur, returning a Promise

    Type Parameters

    • T = ApiCallback<string>

    Parameters

    • eventType: string

      The event type to wait for

    • Optional timeout: number

      Optional timeout in milliseconds

    Returns Promise<T>

    Promise that resolves with the event data