diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-21 13:28:53 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-21 13:28:53 +0800 |
commit | daca3de57364cac19d0b0eb00e71f660bad180d7 (patch) | |
tree | e349392144c88ca8a4464bd089274bdc9ee61a33 /fg21sim/webui/static/js/console.js | |
parent | c687143defd216196d45b902604aabdeed670594 (diff) | |
download | fg21sim-daca3de57364cac19d0b0eb00e71f660bad180d7.tar.bz2 |
webui: websocket.py: Also push current task status when connected
Diffstat (limited to 'fg21sim/webui/static/js/console.js')
-rw-r--r-- | fg21sim/webui/static/js/console.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fg21sim/webui/static/js/console.js b/fg21sim/webui/static/js/console.js index 4417b6f..4b2d1b7 100644 --- a/fg21sim/webui/static/js/console.js +++ b/fg21sim/webui/static/js/console.js @@ -186,6 +186,8 @@ var startServerTask = function (url, task, kwargs) { var handleWebSocketMsgConsole = function (msg) { if (msg.subtype === "log") { appendLogMessage(msg); + } else if (msg.subtype === "status") { + updateTaskStatus(msg.status); } else { console.warn("WebSocket: received message:", msg); } |