diff options
Diffstat (limited to 'src/store/plugins')
-rw-r--r-- | src/store/plugins/WebSocketPlugin.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/store/plugins/WebSocketPlugin.js b/src/store/plugins/WebSocketPlugin.js index 409b1686..965c32c9 100644 --- a/src/store/plugins/WebSocketPlugin.js +++ b/src/store/plugins/WebSocketPlugin.js @@ -18,7 +18,8 @@ const WebSocketPlugin = store => { }; const initWebSocket = () => { - ws = new WebSocket(`wss://${window.location.host}/subscribe`); + const token = store.getters['authentication/token']; + ws = new WebSocket(`wss://${window.location.host}/subscribe`, [token]); ws.onopen = () => { ws.send(JSON.stringify(data)); }; |