Pawan
Pawan

Reputation: 32321

WebSocket Onclose Status Code 1001 meaning Going Away mean exactly

I am using Web Sockets in my Application

While onclose event , i am getting the status code as 1001

As per this web site , the status code 1001 means Going Away

WebSockets Status Codes

Please let me know what does the Status 1001 meaning (Going Away) mean exactly

Please let me know , thanks in advance .

Upvotes: 28

Views: 51666

Answers (1)

jesse mcconnell
jesse mcconnell

Reputation: 7182

From RFC 6455:

  1001 indicates that an endpoint is "going away", such as a server
  going down or a browser having navigated away from a page.

Upvotes: 34

Related Questions