From 8610433d2837d3a8b9831ca39063333fab8dc4c4 Mon Sep 17 00:00:00 2001 From: jbruce Date: Thu, 29 Nov 2018 14:27:19 -0500 Subject: [PATCH] - change message displayed when client connects --- public/assets/js/picoreflow.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/assets/js/picoreflow.js b/public/assets/js/picoreflow.js index f833c65..0b8025c 100644 --- a/public/assets/js/picoreflow.js +++ b/public/assets/js/picoreflow.js @@ -455,7 +455,7 @@ $(document).ready(function() { console.log("Status Socket has been opened"); - $.bootstrapGrowl(" Yay
I'm alive", + $.bootstrapGrowl("Getting data from server", { ele: 'body', // which element to append to type: 'success', // (null, 'info', 'error', 'success') @@ -484,8 +484,10 @@ $(document).ready(function() ws_status.onmessage = function(e) { - x = JSON.parse(e.data); + console.log("received status data") + console.log(e.data); + x = JSON.parse(e.data); if (x.type == "backlog") { if (x.profile) @@ -612,6 +614,7 @@ $(document).ready(function() ws_control.onmessage = function(e) { //Data from Simulation + console.log ("control socket has been opened") console.log (e.data); x = JSON.parse(e.data); graph.live.data.push([x.runtime, x.temperature]);