WebSocket Close Code
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://statuscodefyi.com/iframe/glossary/websocket-close-code/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://statuscodefyi.com/glossary/websocket-close-code/
Add a dynamic SVG badge to your README or docs.
[](https://statuscodefyi.com/glossary/websocket-close-code/)
Use the native HTML custom element.
A numeric code sent in a WebSocket Close frame indicating the reason for disconnection, defined in RFC 6455. Common codes include 1000 (normal closure), 1001 (endpoint going away), 1006 (abnormal closure, set locally), 1008 (policy violation), 1011 (internal server error), and 4000-4999 (application-defined). The close frame may also include a UTF-8 reason string up to 123 bytes.