第一步检查nginx
配置
#the following would go within the server{} block of your web server config
location /socket.io {
proxy_pass http://websocket; #could be localhost if Echo and NginX are on the same box
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}