WebSocket connection to ws: failed

在运行VUE项目时,控制台反复提示,websocket连接总是提示错误 WebSocket connection to 'ws:

WebSocket connection to 'ws://localhost:83/sockjs-node/217/zhqr4t5o/websocket' failed: Invalid frame header sockjs.js:1684 

WebSocket connection to 'ws://192.168.*.*/sockjs-node/217/zhqr4t5o/websocket' failed: Invalid frame header sockjs.js:1684 

解决方法:

vue.config.js中配置devServer.proxy的ws为false

解决console控制台反复打印“WebSocket connection to ‘ws://

 

文字工具

转换工具

便民查询

开发工具

其它工具

随机推荐