aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/webui/static/js')
-rw-r--r--fg21sim/webui/static/js/websocket.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/fg21sim/webui/static/js/websocket.js b/fg21sim/webui/static/js/websocket.js
index 95e85f2..ae44410 100644
--- a/fg21sim/webui/static/js/websocket.js
+++ b/fg21sim/webui/static/js/websocket.js
@@ -16,7 +16,7 @@ var ws = null; /* WebSocket */
var ws_reconnect = {
maxTry: 100,
tried: 0,
- timeout: 1000, /* ms */
+ timeout: 3000, /* ms */
};
@@ -130,8 +130,9 @@ var connectWebSocket = function (url) {
toggleWSReconnect("show");
};
ws.onmessage = function (e) {
- console.log("WebSocket received message:");
- console.log(e.data);
+ var msg = JSON.parse(e.data);
+ console.log("WebSocket received message: type:", msg.type,
+ ", status:", msg.status);
};
};