You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The page starts with 1 sockjs requests,which is http://localhost:8080/mySock/info?t=1565709652649.
What is actually happening?
The page starts with 2 sockjs requests, one is http://localhost:8080/mySock/info?t=1565709652649, another one is http://192.168.198.176:8080/sockjs-node/info?t=1565709652650,the second URL is not correct, and it causes more sockjs-node/info requests later, which are redundant.
Version
3.10.0
Reproduction link
https://github.com/Zhangjd/vue-cli-demo
Environment info
Steps to reproduce
vue create
to create a new project.vue.config.js
.npm run serve
.http://localhost:8080/
.What is expected?
The page starts with 1 sockjs requests,which is
http://localhost:8080/mySock/info?t=1565709652649
.What is actually happening?
The page starts with 2 sockjs requests, one is
http://localhost:8080/mySock/info?t=1565709652649
, another one ishttp://192.168.198.176:8080/sockjs-node/info?t=1565709652650
,the second URL is not correct, and it causes moresockjs-node/info
requests later, which are redundant.用中文解释一下:我需要通过设置sockPath来自定义sockjs-node的路径,在这个例子中,初始化页面发送了两个sockjs-node请求,一个是我自定义的路径,另一个路径是错误的(应该是多余的?我印象中旧版本只会发起一个sockjs-node请求)。如果第二个请求失败(比如在生产环境中出现5xx错误)就会导致页面无法连接热更新的websocket。
The text was updated successfully, but these errors were encountered: