diff -r 5f20f391ae31 -r d22782b9591f svghmi/gen_index_xhtml.xslt
--- a/svghmi/gen_index_xhtml.xslt Wed Jun 30 15:51:59 2021 +0200
+++ b/svghmi/gen_index_xhtml.xslt Thu Jul 01 14:33:14 2021 +0200
@@ -7556,7 +7556,19 @@
// Open WebSocket to relative "/ws" address
- var ws = new WebSocket(window.location.href.replace(/^http(s?:\/\/[^\/]*)\/.*$/, 'ws$1/ws'));
+
+
+ var ws_url =
+
+ window.location.href.replace(/^http(s?:\/\/[^\/]*)\/.*$/, 'ws$1/ws')
+
+ + '?mode=' + (window.location.hash == "#watchdog"
+
+ ? "watchdog"
+
+ : "multiclient");
+
+ var ws = new WebSocket(ws_url);
ws.binaryType = 'arraybuffer';