diff options
Diffstat (limited to 'src')
-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); |