1001 Going Away
An endpoint is going away, such as a server shutting down or a browser navigating away from the page. The connection must be closed.
On this page
When You See This Code
The server is shutting down for maintenance, or the user navigated away from the page or closed the browser tab while a WebSocket was open.
How to Fix
Implement automatic reconnection logic with exponential backoff in your client. If the server is restarting, the client should retry after a short delay.
Specification
Compare With
Guides
Debugging Scenarios
Specifications
Decision Guides
Glossary
Frequently Asked Questions
What is WebSocket 1001 Going Away?
An endpoint is going away, such as a server shutting down or a browser navigating away from the page. The connection must be closed.
When do you see WebSocket 1001 Going Away?
The server is shutting down for maintenance, or the user navigated away from the page or closed the browser tab while a WebSocket was open.
How to fix WebSocket 1001 Going Away?
Implement automatic reconnection logic with exponential backoff in your client. If the server is restarting, the client should retry after a short delay.