@getdial/sdk - v0.21.0
    Preparing search index...

    Class EventsConnection

    A long-lived subscription to the account's event stream, exposed as an AsyncIterable<DialEvent>. This is the SDK's idiom for what the CLI does one-shot with dial wait-for: instead of returning a single event, it yields every event on the channel until the consumer stops iterating or calls close().

    The token is silently re-minted before it expires, so a connection can stay open indefinitely. PubNub specifics (subscribe key, channel, token, TTL) are never surfaced to the caller.

    Implements

    Index
    • Returns Promise<void>

    • Returns AsyncIterator<DialEvent>

    • Tear down the subscription and end iteration. Idempotent.

      Returns Promise<void>