WebSocket: protocol guide / panduan protokol
Upgrade HTTP/1.1 into a bidirectional message channel.
Upgrade HTTP/1.1 menjadi kanal pesan dua arah.
Communication walkthrough / Alur komunikasi
- Upgrade request
The client sends a key and requests the websocket upgrade.
Klien mengirim key dan meminta upgrade websocket.
- 101 Switching Protocols
The server derives Sec-WebSocket-Accept from the client key.
Server menghitung Sec-WebSocket-Accept dari key klien.
- Masked text frame
Client-to-server frames are masked; masking is not encryption.
Frame klien ke server dimasking; masking bukan enkripsi.
- Unmasked text frame
Server-to-client frames are not masked.
Frame server ke klien tidak dimasking.
Source and simulation scope
This is a simplified, deterministic teaching scenario. Timing is illustrative. Messages grouped within one event are explicitly condensed. Hexadecimal fixtures, where shown, contain only the indicated protocol ADU, not a full network capture. No PCAP files are supplied.
RFC 6455 ↗