mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Two related bugs: a browser tab that lost network (or got backgrounded/ suspended on Android) could leave the connector alive on the TS3/TeaSpeak server for minutes after the frontend showed disconnected, and multi-join background tabs simply vanished on any drop instead of staying connected. - gateway: WebSocket ping/pong heartbeat (20s) so a dead browser socket is detected and its connector torn down promptly instead of waiting on an OS-level TCP timeout. - web: every session (active tab or parked multi-join background tab) now remembers its connect params and can reopen its own socket after an unexpected drop, with exponential backoff (1s-30s) so a persistently unreachable gateway isn't hammered. Wake Lock keeps the screen (and the tab's throttling) at bay while any session is live; a visibilitychange sweep reconnects every dropped session once the page is visible again. Mic stays off for background sessions throughout, same as before.