WebSockets
- Category
- Developer tools
- Docs outline
- 12 sections
Official docs outline
websockets.spec.whatwg.org- WebSocket API
Browser WebSocket interface and events.
- Writing WebSocket client apps
Opening a WebSocket, sending and receiving messages and handling events in the browser.
- Opening handshake
HTTP upgrade and Sec-WebSocket-Key.
- Data framing
Frames, opcodes, masking and fragmentation.
- Control frames
Ping, pong and close control frames and keepalive behavior.
- Closing handshake and status codes
The closing handshake, close codes and how connections shut down.
- Subprotocols and extensions
Negotiating subprotocols and extensions.
- permessage-deflate
The permessage-deflate extension for compressing messages.
- Security considerations
Origin checking, client-to-server masking, TLS (wss) and other security considerations.
- WebSockets over HTTP/2
Bootstrapping WebSockets over HTTP/2 with the extended CONNECT method.
- Writing WebSocket servers
What a WebSocket server must implement: handshake, frame parsing and masking.
- HTML Standard WebSockets section
The WebSocket interface as defined in the HTML Standard.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.