問題: Error during WebSocket handshake: Unexpected response code: 400
原因:尚未得知。
解決方法:
參考:https://github.com/socketio/socket.io/issues/1942說的很具體。
基本確定原因出在nginx配置
#修改conf配置 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host;