I get a status 200 when connecting to the websocket, but it is an error?

后端 未结 6 1403
名媛妹妹
名媛妹妹 2020-12-02 22:54

My error shows up in the console of my browser:

\"WebSocket connection to \'ws://localhost:32768/DspClusterWebServices/myHandler\' failed: Unexpected response

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 23:15

    Don't know if this is too late but a solution that I stumbled upon is simply appending the string /websocket after the websocket endpoint that you declared in the spring boot server. This will help keep both the forwarding logic and connect and establish a websocket connection.

提交回复
热议问题