求教socket.io握手失败问题Error during WebSocket handshake: Unexpected response code: 400

socket.io.js:1967 WebSocket connection to ‘ws://127.0.0.1:10000/socket.io/?EIO=3&transport=websocket’ failed: Error during WebSocket handshake: Unexpected response code: 400

求指教!!!

在configs.js中, 最后一行,暴露给客户端的接口 ,CLIENT_PORT 改成10001 改个端口解决了

创建房间的时候,出现下面错误:WebSocket connection to ‘ws://127.0.0.1:10000/socket.io/?EIO=3&transport=websocket’ failed
为什么端口10000不行?

win10上,一般可以从两个方面查找:

  1. 10000 被占用
  2. 防火墙

netstat -ano | findstr :10000 查看是否有进程备用端口