WebSocket handshake: Unexpected response code: 404

后端 未结 4 1571
予麋鹿
予麋鹿 2021-02-19 06:07

Am writing my first websocket program and am getting \"WebSocket handshake: Unexpected response code: 404\", error while loading the webpage.

I am using

4条回答
  •  梦如初夏
    2021-02-19 06:55

    My guess is that you are trying to contact the websocket with a normal browser. That is not allowed and gives a 404 error. You need to use a script or curl to address websockets.

提交回复
热议问题