错误如下:connection to ‘ws://localhost:8080/hello’ failed: Error during WebSocket handshake: Unexpected response code: 302
原因:302表示重定向,一般是由于项目使用了拦截器之类的。我的项目使用了shiro,需要将设置/hello=anon。
错误如下:connection to ‘ws://localhost:8080/hello’ failed: Error during WebSocket handshake: Unexpected response code: 302
原因:302表示重定向,一般是由于项目使用了拦截器之类的。我的项目使用了shiro,需要将设置/hello=anon。