## 解决nginx不支持Websocket的问题:
```
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
```
然后在http client加上upgrade to web socket的代码:
本文共 221 字,大约阅读时间需要 1 分钟。
## 解决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