mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-04-26 11:57:21 +00:00
#156: The Go WebSocket broadcast from IngestNewFromDB was missing the 'decoded' field (with header.payloadTypeName) that live.js needs to display packet types. Added decoded object with payloadTypeName resolution, plus observer_id, observer_name, snr, rssi, path_json, and observation_count fields to match the Node.js broadcast shape. #157-160: Analytics endpoints (hash-sizes, topology, channels) were recomputing everything on every request. Added: - TTL caching (15s) for topology, hash-sizes, and channels endpoints (matching the existing RF cache pattern) - Cached node list + prefix map shared across analytics (30s TTL) - Lazy-cached parsed path JSON on StoreTx (parse once, read many) - Cache invalidation on new data ingestion - Global payloadTypeNames map (avoids per-call allocation) Fixes #156, fixes #157, fixes #158, fixes #159, fixes #160 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
94 KiB
94 KiB