openmixer — generated API reference
    Preparing search index...

    Class TelemetryBroadcaster

    Ticks while there are subscribers, polling the LatencyReportSource when there is one.

    Hierarchy

    • RefCountedFeed
      • TelemetryBroadcaster
    Index
    periodMs: number

    The poll period — also the unit any per-poll hold/window law counts in.

    • get running(): boolean

      Whether the poll timer is currently running.

      Returns boolean

    • get subscriberCount(): number

      The live subscriber count.

      Returns number

    • Force-stop polling regardless of subscriber count (server shutdown).

      Returns void

    • Called whenever polling stops (including a stop with no timer running). A feed carrying cross-poll memory clears it here, so a fresh subscription never compares against a reading from a previous session.

      Returns void

    • Poll once now (also driven by the interval). Never overlaps itself: a tick arriving while readTick is still in flight returns immediately.

      Returns Promise<void>

    • One tick to the sink, carrying the report when a source exists. A thrown read is swallowed and the whole tick skipped — the engine is momentarily busy, and the other gauges wait one period rather than publish beside a report that never came.

      Returns Promise<void>

    • Start the timer if it isn't already running — the activation policy's door.

      Returns void

    • Stop the timer if it is running, then let the subclass drop its per-run state.

      Returns void

    • Register a subscriber; starts polling on the first one.

      Returns void

    • Drop a subscriber; stops polling when the last one leaves.

      Returns void