Currently we roll our own websocket handler with reconnection logic etc, this seems better: https://github.com/lukeed/sockette Maybe this also fixes the issue that sometimes the websocket closes immediately after opening the page.