signalk-server
Version:
An implementation of a [Signal K](http://signalk.org) server for boats.
12 lines • 695 B
TypeScript
export declare const ONLINE_THRESHOLD_MS = 90000;
/**
* Decide whether a device is stale enough to be removed by Reset Stale.
*
* Folds in both freshness signals (value-bearing deltas and raw N2K
* frames) so the Reset Stale predicate matches the Online badge logic
* in buildSourceStatuses. A device that emits only meta PGNs (Heartbeat
* / Address Claim / Product Information) — or whose data PGNs aren't
* mapped to Signal K paths — is shown Online and must not be reset.
*/
export declare function isDeviceStale(metaLastSeen: number | undefined, frameLastSeen: number | undefined, now: number, thresholdMs?: number): boolean;
//# sourceMappingURL=n2k-discovery-staleness.d.ts.map