HTTP

Tag

WebSockets

Follow the HTTP upgrade handshake and the headers and status codes that establish a WebSocket connection. This curated hub brings together 4 related resources.

HTTP Status Codes

101 Switching Protocols

The server is switching to a different protocol as requested by the client. Learn about WebSocket upgrades and protocol negotiation.

HTTP Headers

Sec-WebSocket-Accept

Learn how the Sec-WebSocket-Accept header indicates server acceptance of a WebSocket connection upgrade. Understand the handshake process and key validation.

HTTP Headers

Sec-WebSocket-Key

Learn how the Sec-WebSocket-Key header provides a random key for WebSocket handshake validation. Understand the upgrade process and security implications.

HTTP Headers

Upgrade Header

Learn how the Upgrade header requests protocol upgrades to WebSocket, HTTP/2, or other protocols on the same TCP connection. Understand upgrade negotiation.