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!

Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

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.

Svi odgovori (2)

more options

Odabrano rješenje

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.

Izmjenjeno od Programmer_Frank