diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-19 10:35:33 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-19 10:35:33 +0300 |
commit | 0e0028a0b96ffb99720b219009dd697a2119d3d8 (patch) | |
tree | 2f2d2e178910b65b822cca9f6f1c5451adcd802d | |
parent | 356426c8886559f868070689c6f3fc7ba95a6a92 (diff) | |
download | webui-vue-0e0028a0b96ffb99720b219009dd697a2119d3d8.tar.xz |
debug2bmc-time-sila
-rw-r--r-- | src/store/plugins/WebSocketPlugin.js | 17 |
1 files changed, 16 insertions, 1 deletions
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); |