New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep Trying to connect…
after Disconnected
#26
Comments
Disconnected
Disconnected
Trying to connect…
after Disconnected
Just as a quick note I believe it only attempts a reconnect on page |
Yes, it is only working on page |
Ah, sorry I think there has been a misunderstanding here? This is intentional behavior—we attempt to reconnect when you focus to the browser window. If the server is down when you focus (or the tab’s visibility changes), it will report an error. It doesn’t seem like this error is swallow-able via try catch, unfortunately. Some additional info here https://stackoverflow.com/questions/31002592/javascript-doesnt-catch-error-in-websocket-instantiation If you’d like to request an option to this behavior, I can convert this one to be an enhancement request, though it feels like lower priority to me at the moment |
|
Just one more small note here I did play around with adding an |
I just want it to "Stop Reconnecting after Disconnection" |
After terminating
11ty --serve
, it keepTrying to connect…
& logging into browser consoleIt should suppress
WebSocket connection failed
(? andTrying to connect…
?) warningwhich will result:
The text was updated successfully, but these errors were encountered: