You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to undo the 1000,1001,1005 exceptions in the onClose method.
Some reverse proxies like Caddy close the ws with 1001 if you stop/start them, it's so it's annoying having to refresh the page at each reboot or simply reverse proxy config change.
Please add an option where you bypass the 1000,1001,1005 check, some application want to keep retrying no matter what.
onclose: e => {
console.log(`Closed with code: ${e.code}`);
if (e.code === 1e3 || e.code === 1001 || e.code === 1005) {
this.ws.reconnect(e);
}
},
The text was updated successfully, but these errors were encountered:
I had to undo the 1000,1001,1005 exceptions in the onClose method.
Some reverse proxies like Caddy close the ws with 1001 if you stop/start them, it's so it's annoying having to refresh the page at each reboot or simply reverse proxy config change.
Please add an option where you bypass the 1000,1001,1005 check, some application want to keep retrying no matter what.
The text was updated successfully, but these errors were encountered: