From 0e0028a0b96ffb99720b219009dd697a2119d3d8 Mon Sep 17 00:00:00 2001 From: Vitalii Lysak Date: Fri, 19 Aug 2022 10:35:33 +0300 Subject: debug2 --- src/store/plugins/WebSocketPlugin.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/store/plugins/WebSocketPlugin.js b/src/store/plugins/WebSocketPlugin.js index b2f73185..89af24c9 100644 --- a/src/store/plugins/WebSocketPlugin.js +++ b/src/store/plugins/WebSocketPlugin.js @@ -9,6 +9,21 @@ */ const WebSocketPlugin = (store) => { let ws; + const data = { + paths: [ + '/xyz/openbmc_project/state/host0', + '/xyz/openbmc_project/logging', + '/xyz/openbmc_project/state/boot/raw0', + '/xyz/openbmc_project/time/bmc', + ], + interfaces: [ + 'xyz.openbmc_project.State.Host', + 'xyz.openbmc_project.Logging.Entry', + 'xyz.openbmc_project.State.Boot.Raw', + 'xyz.openbmc_project.Time.Manager', + 'xyz.openbmc_project.Time.EpochTime', + ], + }; const initWebSocket = () => { const socketDisabled = @@ -17,7 +32,7 @@ const WebSocketPlugin = (store) => { const token = store.getters['authentication/token']; ws = new WebSocket(`wss://${window.location.host}/subscribe`, [token]); ws.onopen = () => { - ws.send(); + ws.send(JSON.stringify(data)); }; ws.onerror = (event) => { console.error(event); -- cgit v1.2.3