crgimenes / compterm

Versatile terminal sharing tool for educational, development, and nostalgic BBS experiences, optimized for Golang study groups and pair programming.
MIT License
11 stars 2 forks source link

Loses websocket connection #1

Closed crgimenes closed 11 months ago

crgimenes commented 12 months ago

Apparently when the browser window is not in focus after a few moments the connection to the websocket is lost.

We have to prevent this behavior or try to mitigate the problem by reconnecting when focus resumes.

window.addEventListener("focus", () => socket.connect());
crgimenes commented 11 months ago

fixed on v0.0.1