diff --git a/web/vue/src/components/global/ws.js b/web/vue/src/components/global/ws.js index c246390c0..017b533e4 100644 --- a/web/vue/src/components/global/ws.js +++ b/web/vue/src/components/global/ws.js @@ -27,10 +27,11 @@ export const connect = () => { socket = new ReconnectingWebSocket(wsPath); setTimeout(() => { - // in case we cannot connect - if(!info.connected) + if(!info.connected) { + initializeState(); bus.$emit('WS_STATUS_CHANGE', info); + } }, 500); socket.onopen = () => {