QuestDB JavaScript Client - v5.0.0
    Preparing search index...

    Browser-safe QWP egress session.

    The server currently executes one query at a time per connection, so this session deliberately rejects overlapping query calls. A completed query's materialized batches may still be consumed while the next query runs.

    Implements

    • QwpEgressQueryControl
    Index

    Constructors

    Properties

    ready: Promise<QwpServerInfoMessage>

    Initial SERVER_INFO; use serverInfo for the current post-failover snapshot.

    Accessors

    • get metrics(): QwpEgressMetrics

      Immutable notification-inbox counters for this session's reconnect observer, the egress counterpart of QwpIngressSession.metrics.

      A reconnect.onEvent observer runs on a bounded inbox that drops its oldest pending entry under overflow, exactly as ingress does. Nothing reported those drops, and no gap in the delivered stream reveals them either, because attempt resets to one on every success: six outages that discarded eleven events were indistinguishable from a healthy two. A non-zero drop count means the observer is not keeping up.

      Returns QwpEgressMetrics

    Methods

    • Parameters

      • requestId: bigint
      • additionalBytes: number | bigint
      • replayOnReconnect: boolean = true

      Returns Promise<void>

    • Internal

      Cancels and drains an active operation before a pooled lease is returned. False means the physical session is no longer safe to reuse.

      Returns Promise<boolean>

    • Internal

      Best-effort cancellation followed by physical connection teardown for facade shutdown. Unlike pooled lease return, this does not wait for the server to finish draining the cancelled query.

      Returns Promise<void>