mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Add fallback for websocket communication #361
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @based-us3r on GitHub (Jun 19, 2025).
Quite often, when I open the panel, I see the error "Could not connect to websocket!" In the terminal, Firefox reports
NS_ERROR_CONNECTION_REFUSED. I'm not exactly sure what's causing it, but this issue doesn’t occur for other users on Chrome. Interestingly, if I use the same domain for the WebSocket but over plain HTTPS (instead of WebSocket), everything works. The WebSocket connection consistently fails right at the end of the DNS lookup stage. Sometimes it starts working again briefly, but then fails again. This significantly disrupts my workflow, so I’d really appreciate having a fallback mechanism similar to what Socket.IO offers—where, if the WebSocket connection fails, it can fall back to HTTP long-polling or WebTransport.