rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
1.32k stars 38 forks source link

Improve Websocket Reconnect in Firefox #58

Closed mad-moo closed 3 months ago

mad-moo commented 3 months ago

Firefox tracks websocket disconnection failures and once a certain threshold is exceeded throttles them. This leads to an annoying grey screen before further attempts are made. Improve on this:

Aran-Fey commented 3 months ago

The frontend now uses HTTP requests (via fetch) to check if the server is online. Seems to have solved the problem, as far as I can tell.