Handshake
The initial exchange where 2 parties agree before starting to send data.
Example
The client asks to switch to WebSocket, the server accepts, and only then do messages start.
Test yourself: Handshake
Real time: long polling, WebSockets and SSE
A WebSocket opens with an ___ request that asks to switch protocols.
It starts as plain HTTP and the server agrees to switch to ws://. That handshake happens 1 time and the connection stays open for hours.
0/1
â–¶ Play