mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-03-30 17:05:58 +00:00
The Go server's WebSocket broadcast included first_seen but not timestamp in the nested packet object. The frontend packets.js filters on m.data.packet and reads p.timestamp for row insertion and sorting. Without this field, live-updating silently failed (rows inserted with undefined latest, breaking display). Mirrors the pattern already used in txToMap() (store.go:1168) which correctly emits both first_seen and timestamp. Also updates websocket_test.go to assert timestamp presence in broadcast data to prevent regression. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>