当然,它的流程跟原来的http定义有出入,你不认为它是http是对的,只是我在处理上认为它们没啥不同而已。
【 在 dhcn (小石) 的大作中提到: 】
: 由于使用HTTP的端口,因此TCP连接建立后的握手消息是基于HTTP的,由服务器判断这是一个HTTP协议,还是WebSocket协议。 WebSocket连接除了建立和关闭时的握手,数据传输和HTTP没丁点关系了。
: Be aware though websockets are not an http transport thus putting them behind http based proxies (e.g haproxy in http mode) breaks the connection. Better serve them on an alternate ip or port so you can proxy in tcp mode (e.g haproxy in tcp mode).
--
修改:ttl FROM 106.37.188.*
FROM 106.37.188.*