mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-07-18 08:36:26 +00:00
Instead of re-fetching /api/channels and /api/channels/:hash/messages on every WebSocket event, the channels page now processes WS messages client-side: - Extract sender, text, channel, timestamp from WS payload - Append new messages directly to local messages[] array - Update channel list entries (lastActivity, lastSender, messageCount) - Create new channel entries for previously unseen channels - Deduplicate repeated observations of the same message API calls now only happen on: - Initial page load (loadChannels) - Channel selection (selectChannel) - Region filter change This eliminates all polling and WS-triggered re-fetches.