WebSocket Frame
The basic unit of communication in the WebSocket protocol. After the initial HTTP upgrade handshake, data is exchanged as frames rather than HTTP messages. Frame types include text, binary, ping, pong, and close. Close frames carry a status code (like 1000 Normal Closure or 1001 Going Away) that indicates why the connection is being terminated.
โปรโตคอลที่เกี่ยวข้อง
กล่าวถึงในคู่มือ
สถานการณ์ที่เกี่ยวข้อง
502 Bad Gateway — WebSocket Upgrade Failure Through Proxy
HTTP
WebSocket 1006 Abnormal Closure
WebSocket
1008 Policy Violation — Authentication Timeout
WebSocket
1009 Message Too Big — Payload Size Limit
WebSocket
1015 TLS Handshake Failure — Certificate Mismatch
WebSocket
1011 Internal Error — Server Crash During Stream
WebSocket
1002 Protocol Error — Invalid Frame from Proxy
WebSocket
1013 Try Again Later — Server Overloaded
WebSocket
กำหนดไว้ใน
คู่มือการตัดสินใจ
ดูเพิ่มเติม
Status Code
HTTP Concepts
Protocol Upgrade
Protocol Design
Message Framing
Protocol Design
Server-Sent Events (SSE)
Real-Time & Streaming
Long Polling
Real-Time & Streaming
WebSocket Subprotocol
Real-Time & Streaming
WebSocket Ping/Pong
Real-Time & Streaming
WebSocket Close Code
Real-Time & Streaming
Bidirectional Streaming RPC
gRPC & RPC