summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-08-19 09:36:06 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-08-19 09:36:06 +0300
commit356426c8886559f868070689c6f3fc7ba95a6a92 (patch)
tree5831abce1ae8fb9d76bef639a28bb1aa2053fc35
parent70a6891692dce6a016c96188dc7c4871cc6c2413 (diff)
downloadwebui-vue-356426c8886559f868070689c6f3fc7ba95a6a92.tar.xz
debug
-rw-r--r--src/store/plugins/WebSocketPlugin.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/store/plugins/WebSocketPlugin.js b/src/store/plugins/WebSocketPlugin.js
index 316eb77f..b2f73185 100644
--- a/src/store/plugins/WebSocketPlugin.js
+++ b/src/store/plugins/WebSocketPlugin.js
@@ -9,7 +9,6 @@
*/
const WebSocketPlugin = (store) => {
let ws;
- const data = {};
const initWebSocket = () => {
const socketDisabled =
@@ -18,7 +17,7 @@ const WebSocketPlugin = (store) => {
const token = store.getters['authentication/token'];
ws = new WebSocket(`wss://${window.location.host}/subscribe`, [token]);
ws.onopen = () => {
- ws.send(JSON.stringify(data));
+ ws.send();
};
ws.onerror = (event) => {
console.error(event);