摘要:
1、客户端握手请求(注意:键值之间有一个空格,行间有换行符号0x13x10或者说\r\n)GET /WebSocket/LiveVideo HTTP/1.1Upgrade: WebSocketConnection: UpgradeHost: localhost:8080 (客户端请求主机)Origin: http://127.0.0.1 (来源网页地址)Sec-WebSocket-Key1: 23 asdfJKj,asdjkSec_WebSocket-Key2: wewerw234 jij9980x13x10 + 8个字节Sec_WebSocket-Key3值,没有键名(注意,这里的0x13x 阅读全文