WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 400

后端 未结 16 1467
攒了一身酷
攒了一身酷 2020-12-04 21:08

I am trying to integrate Socket.io with Angular and I\'m having difficulties making a connection from the client-side to the server. I\'ve looked through other related quest

16条回答
  •  星月不相逢
    2020-12-04 21:52

    I solved this by removing io.listen(server);. I started running into this error when I started integrating passport.socketio and using passport middleware.

提交回复
热议问题