Skip to content
Français

ObservationReporter

import type { ObservationReporter } from "@elie-laloum/outpost/core";
  • eventRequired
    ObservationEvent & ReportPass
    An observation event with optional pass number for the historical callable interface. For scoped delivery, pass the reporter directly as an ObservationSink.
  • observeRequired
    (observation: Observation) => void | Promise<void>
    Receive one envelope; returned promises are serialized per sink and rejection is isolated from execution.
  • flushOptional
    (() => void | Promise<void>) | undefined
    Drains the receiver’s own buffer; the hub calls it from flush() with its delivery timeout.
export interface ObservationReporter extends ObservationSink {
  (event: ObservationEvent & ReportPass): void;
}