Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

What is error code 1000 when a websocket is closed?

more options

I have a web app that communicates with a Javascript file using JSON RPC 2.0. If the Javascript cannot connect to the server or if the server is suddenly "turned off" I will get a close code 1000. What is the error or close code 1000 in Firefox? I can't seem to find a definite answer.

I have a web app that communicates with a Javascript file using JSON RPC 2.0. If the Javascript cannot connect to the server or if the server is suddenly "turned off" I will get a close code 1000. What is the error or close code 1000 in Firefox? I can't seem to find a definite answer.

All Replies (2)

more options

Chosen Solution

more options

the-edmeister said

See if these help you: https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent https://tools.ietf.org/html/rfc6455#section-11.7

@the-edmeister, that gave me exactly what I needed. Thanks a bunch.

Modified by Programmer_Frank