@squawk
    Preparing search index...

    Interface JsonFeedOptions

    Options for createJsonAircraftFeed.

    interface JsonFeedOptions {
        fetch?: (
            input: string | URL | Request,
            init?: RequestInit,
        ) => Promise<Response>;
        pollIntervalMs?: number;
        positionHistoryRetention?: PositionHistoryRetention;
        staleAfterMs?: number;
        url: string;
    }

    Hierarchy (View Summary)

    Index
    fetch?: (input: string | URL | Request, init?: RequestInit) => Promise<Response>

    Override for the global fetch, for tests or non-standard runtimes.

    pollIntervalMs?: number

    Polling interval in ms. Defaults to 1000 - dump1090-fa itself refreshes roughly once a second, so polling faster does not return fresher data.

    positionHistoryRetention?: PositionHistoryRetention

    How much position history to retain per aircraft. Unbounded (subject to memory) if omitted.

    staleAfterMs?: number

    Milliseconds an aircraft can go without an update before aircraft:lost fires. Defaults to 60000.

    url: string

    Full URL to the dump1090-fa aircraft.json endpoint, e.g. "http://192.168.1.50:8080/data/aircraft.json". Not assembled from a host and port - pass the complete URL for your station's configuration.