Files
meshcore-bot/modules/web_viewer
agessaman 346ee05cb0 refactor(web_viewer): share the Socket.IO subscribe flag and history replay
Five subscribe handlers repeated the same lock-and-flag block, now `_mark_subscribed`; the command, packet and message handlers repeated the same packet_stream query and emit loop, now `_replay_packet_stream` with a type-to-event mapping. Each handler keeps its own debug line and its own 'Error replaying ... history' warning. The command and message replays now also select `type`, which they filter on anyway. Both helpers live in app.py, so `request`, `emit` and `sqlite3` still resolve through `modules.web_viewer.app`.
2026-10-01 19:44:57 -07:00
..