1000
Normal Closure
Sent by: BothDo not retry
1000 Normal Closure indicates the WebSocket connection was closed cleanly and intentionally by either endpoint. The purpose for which the connection was established has been fulfilled. This is the expected close code when a user logs out, a task completes, or the application cleanly disconnects.
Description
1000 is the clean close code. Either the client or server may send 1000 in the close frame. The close frame may include an optional reason string. A 1000 close should not trigger reconnection – it indicates deliberate closure, not a failure. Compare to 1001 (endpoint going away) which may be followed by a reconnect attempt.
Common Causes
- –User explicitly closes the connection
- –Application completes its task
- –Clean server shutdown sequence
- –Session timeout handled gracefully
Code
1000
RFC
RFC 6455
Sent By
Both
Retry
No