summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/session.js
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2025-01-05 15:19:04 +0200
committerMaxim Devaev <[email protected]>2025-01-05 15:19:04 +0200
commit4488365dfbbf7b35cd7b27f0392768e273cd271d (patch)
treefc91746f67bcfed4b62e10738ae07d6a08547db1 /web/share/js/kvm/session.js
parent5a61ddecd3a6fadb71464cc32823e63a8009fb2b (diff)
removed _state suffix from all ws events
Diffstat (limited to 'web/share/js/kvm/session.js')
-rw-r--r--web/share/js/kvm/session.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js
index 38508f18..fcf20ded 100644
--- a/web/share/js/kvm/session.js
+++ b/web/share/js/kvm/session.js
@@ -368,15 +368,15 @@ export function Session() {
let data = JSON.parse(event.data);
switch (data.event_type) {
case "pong": __missed_heartbeats = 0; break;
- case "info_state": __setInfoState(data.event); break;
- case "gpio_state": __gpio.setState(data.event); break;
- case "hid_state": __hid.setState(data.event); break;
- case "hid_keymaps_state": __paste.setState(data.event); break;
- case "atx_state": __atx.setState(data.event); break;
- case "streamer_state": __streamer.setState(data.event); break;
- case "ocr_state": __ocr.setState(data.event); break;
-
- case "msd_state":
+ case "info": __setInfoState(data.event); break;
+ case "gpio": __gpio.setState(data.event); break;
+ case "hid": __hid.setState(data.event); break;
+ case "hid_keymaps": __paste.setState(data.event); break;
+ case "atx": __atx.setState(data.event); break;
+ case "streamer": __streamer.setState(data.event); break;
+ case "ocr": __ocr.setState(data.event); break;
+
+ case "msd":
if (data.event.online === false) {
__switch.setMsdConnected(false);
} else if (data.event.drive !== undefined) {
@@ -385,7 +385,7 @@ export function Session() {
__msd.setState(data.event);
break;
- case "switch_state":
+ case "switch":
if (data.event.model) {
__atx.setHasSwitch(data.event.model.ports.length > 0);
}