WebSocket connection error

Hey guys! Im developing an Ionic 6 Vue + Capacitor app and this error appears in console repeatedly:

WebSocket connection to 'ws://' failed: WebSocketClient.js?5586:16


Im not sure why this is happening, can you help me with this issue please?

Thanks in advance.

Hey I was having the same issue and I found that this is related to webpack

For my team’s project we didn’t need webSocket so I disabled it by updating our vue.config.js module.exports.devServer.webSocketServer = false

webpack docs explaining devServer.webSocketServer property in more detail: