## 解决nginx不支持Websocket的问题: ``` proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; ``` 然后在http client加上upgrade to web socket的代码: 转载于:https://blog.51cto.com/kankan/1894972