News for hackers. Stuff that matters.
Re:Back to basics: Why we chose long-polling over websockets by bioneuralnet on Sunday January 05, 2025 @02:49PM (#42604449)
I've gotten around this by using the Page Visibility API - https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibi.... Close the SSE connection when the page is hidden, and re-open when it becomes visible again.

There are no comments on this comment yet.