1. 客户端将ws: 改为 wss:
2. nginx 配置location中增加:
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
1. 客户端将ws: 改为 wss:
2. nginx 配置location中增加:
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";