Reading Room · Protocols · WebSocket
Track 0/33 (0%)
Protocol track completion
Layer 7 · Applicationport 80 / 443 for wss · TCP; TLS for wss · 5 steps

WebSocket — Bidirectional web messaging

A WebSocket upgrades an HTTP/1.1 connection into a persistent two-way message channel. Either endpoint can send without a new HTTP request.

v1.0.0
OSIApplication

WebSocket walkthrough

BIDIRECTIONAL WEB MESSAGINGWebSocket

A WebSocket upgrades an HTTP/1.1 connection into a persistent two-way message channel. Either endpoint can send without a new HTTP request.

1Request an upgrade
2Switch protocols
3Send a message
4Push an update
5Close the channel

Synthetic teaching trace. Movement shows direction; travel time is illustrative. Connection setup and routine acknowledgements omitted. Space: play/pause · arrows: previous/next event · Home: reset. Shortcuts apply within this walkthrough.

Packet flow

HTTP · WebSocket · active event highlighted

Seek
Every event in WebSocket walkthrough, in observation order: time, source, destination, protocol, summary, and recorded size.
No.TimeSourceDestinationProtocolInfoSize
0.000s192.0.2.10198.51.100.20HTTPGET /chat; Upgrade: websocket96 B
0.020s198.51.100.20192.0.2.10HTTPHTTP/1.1 101 Switching Protocols112 B
0.040s192.0.2.10198.51.100.20WebSocketMasked client text frame: hello128 B
0.060s198.51.100.20192.0.2.10WebSocketServer text frame: update144 B
0.080s192.0.2.10198.51.100.20WebSocketClose frame: 1000160 B

Keyboard shortcuts

⌘ / Ctrl KSearch protocols
LShow or hide the left panel (protocol list)
RShow or hide the right panel (lesson details)
DDiagram only (hide both panels and the packet table) / restore
FEnter or exit fullscreen
?Keyboard shortcuts
Space / KPlay or pause
← / →Previous / next event
HomeReset the trace
VNetwork / sequence view
EscClose dialog or exit fullscreen
Shortcuts apply while the explorer is focused. Search and other inputs keep their usual typing behavior.

Navigation

LivePreparation

Client-side workspace · saved locally