mirror of
https://github.com/MeshCore-Beacon/beacon-web.git
synced 2026-09-01 16:48:19 +00:00
The big one: updateSubscription before the previous subscribe was acked never unsubscribed it (the server keeps scopes additively), so a region change right after connect left the old all-regions sub alive and the live feed stayed a firehose. Subscribes now carry a tracked id and an ack for a superseded subscribe is unsubscribed on arrival. Also: - doConnect/disconnect tear down the old socket and detach handlers, so a late close from a dead socket can't spawn a parallel reconnect loop (the StrictMode dev warning came from this) - subscription ids are cleared per-connection instead of leaking a stale id onto the next socket - pings now double as a liveness check: no pong for two intervals forces a reconnect instead of showing LIVE on a half-open link - a server-sent close 1000 reconnects instead of going permanently dark - after a reconnect the manager synthesizes a lag notice so live views refetch what they missed during the outage