Phase 03 · WebSocket, for Real
The migration from a homemade protocol to the real standard: the HTTP Upgrade handshake, computing Sec-WebSocket-Accept (SHA-1 + base64 + the magic GUID), the full frame format (FIN, opcode, masking, the three payload-length encodings), ping/pong/close control frames, message fragmentation, and the close handshake — verified against a real browser client.