aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/webui/static')
-rw-r--r--fg21sim/webui/static/js/console.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/fg21sim/webui/static/js/console.js b/fg21sim/webui/static/js/console.js
index 86ea90c..14e0ad7 100644
--- a/fg21sim/webui/static/js/console.js
+++ b/fg21sim/webui/static/js/console.js
@@ -144,7 +144,18 @@ var getServerTaskStatus = function (ws) {
*/
var startServerTask = function (ws, time) {
time = typeof time !== "undefined" ? time : 5;
- var msg = {type: "console", action: "start", time: time};
+ var msg = {type: "console", action: "start"};
+ ws.send(JSON.stringify(msg));
+};
+
+/**
+ * Request to start the test task on the server.
+ *
+ * @param {Number} time - Time in seconds for the sleep test task on server
+ */
+var startServerTaskTest = function (ws, time) {
+ time = typeof time !== "undefined" ? time : 5;
+ var msg = {type: "console", action: "start_test", time: time};
ws.send(JSON.stringify(msg));
};