@squawk
    Preparing search index...

    Interface AircraftFeed

    A live, typed feed of ADS-B aircraft state, normalized from a dump1090-fa source into Aircraft events. Dispatches aircraft:new and aircraft:update (both carrying AircraftUpdateEventDetail), aircraft:lost (carrying AircraftLostEventDetail), and connection:connect / connection:disconnect (both carrying ConnectionStateEventDetail) for the underlying transport's connection lifecycle.

    Create one with createJsonAircraftFeed or createSbsAircraftFeed rather than implementing this interface directly.

    interface AircraftFeed {
        addEventListener(
            type: string,
            listener: EventListener | EventListenerObject,
            options?: boolean | AddEventListenerOptions,
        ): void;
        dispatchEvent(event: Event): boolean;
        getAircraft(icaoHex: string): Aircraft | undefined;
        getAllAircraft(): Aircraft[];
        getConnectionState(): ConnectionState;
        getPositionHistory(icaoHex: string): PositionHistoryEntry[];
        removeEventListener(
            type: string,
            listener: EventListener | EventListenerObject,
            options?: boolean | EventListenerOptions,
        ): void;
        start(): void;
        stop(): void;
    }

    Hierarchy

    • EventTarget
      • AircraftFeed
    Index
    • Parameters

      • type: string
      • listener: EventListener | EventListenerObject
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • Parameters

      • event: Event

      Returns boolean

    • Parameters

      • type: string
      • listener: EventListener | EventListenerObject
      • Optionaloptions: boolean | EventListenerOptions

      Returns void