解决 socket.io 不能使用 websocket 长连接,一直轮询请求的问题

Lenix at 
参考:https://socket.io/docs/v4/troubleshooting-connection-issues/#a-proxy-in-front-of-your-servers-does-not-accept-the-WebSocket-connection 可能的解释:服务器前面的代理不接受 WebSocket 连接服务器前面的代理不接受 WebSocket 连接请在此处查看文档。 在 Nginx 代理上,修改 nginx 配置如下.http { server { listen 80; server_name example.com; locat……