websocket

websocket在tcp三次握手之后,客户端发送http的upgrade的get请求。

GET /HTTP/1.1
Upgrader: websocket
Connection: Upgrade
Host: example.com
Origin: http://example.com
Set-WebSocket-Key: sNNdMgdc2VGJEKS
Set-WebSocket-Version: 13

你可能感兴趣的:(网络,websocket,网络协议,网络)