Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

What is error code 1000 when a websocket is closed?

  • 2 trả lời
  • 2 gặp vấn đề này
  • 3568 lượt xem
  • Trả lời mới nhất được viết bởi Programmer_Frank

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.

Tất cả các câu trả lời (2)

more options

Giải pháp được chọn

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.

Được chỉnh sửa bởi Programmer_Frank vào