onBeforeUnmount } from 'vue'; const socket = new WebSocket('ws://localhost:8080'); const st...
Vue3的websocket路径是什么? 、、 尝试在远程机器上托管Vue3开发,使用vite为开发服务,做热模块替换(HMR)等,并且在本地开发时工作得很好。我得到了良好的页面服务,但是HMR失败了,页面每隔几秒钟重新加载一次,因为websocket无法连接。我可以用caddy添加另一个端口,但它似乎必须有一个不同的路径(例如,我可以将路径‘...
onBeforeUnmount } from 'vue'; const socket = new WebSocket('ws://localhost:8080'); const st...