由于使用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 的大作中提到: 】
: websocket是一个http请求,贵单位不行,那一定是代理土或者故意的,哈哈。
:
--
修改:dhcn FROM 124.42.13.*
FROM 124.42.13.*