mlx-bun library API
    Preparing search index...
    interface MetricsRoutesOptions {
        jobs: JobService;
        keepAliveMs?: number;
        minIntervalMs?: number;
        now?: () => number;
        signal?: AbortSignal;
        storage: Pick<StorageService, "path">;
        store: MetricsStore;
        timers?: StreamTimers;
        onChange(listener: () => void): Unsubscribe;
    }
    Index
    keepAliveMs?: number

    Milliseconds between comment frames that keep an idle connection open. Default 15 000.

    minIntervalMs?: number

    Fewest milliseconds between two snapshots on one stream. Default 500.

    now?: () => number
    signal?: AbortSignal

    Aborts when the host stops the module; open streams end.

    storage: Pick<StorageService, "path">
    timers?: StreamTimers