mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-05-14 16:55:34 +00:00
95afaf2f0d
The frontend packets.js filters WS messages with m.data?.packet and extracts m.data.packet for live rendering. Node's server.js includes a packet sub-object (packet: fullPacket) in the broadcast data, but Go's IngestNewFromDB built the data flat without a nested packet field. This caused the Go staging packets page to never live-update via WS even though messages were being sent — they were silently filtered out by packets.js. Fix: build the packet fields map separately, then create the broadcast map with both top-level fields (for live.js) and nested packet (for packets.js). Also fixes the fallback DB-direct poller path. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>