node.js-WebSocket与“ ws://…/socket.io/”的连接失败:WebSocket握手时出错:n

node.js-WebSocket与“ ws://…/socket.io/”的连接失败:WebSocket握手时出错:n

我正在使用nginx并代理到我的应用程序,该应用程序在node.js上使用socket.io进行websocket连接.通过域访问应用程序时出现上述错误.我已根据https://github.com/socketio/socket.io/issues/1942配置了nginx以确保将websocket正确代理到node.js后端.我的nginx配