diff options
Diffstat (limited to 'handler.js')
-rw-r--r-- | handler.js | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -7,7 +7,9 @@ function connectEventHandler(e) { document.getElementById("wstask_status").style.backgroundColor = "#40ff40"; document.getElementById("wstask_status").textContent = "TaskProto websocket connection opened "; - socket_task.send("observe 0;"); + + // login("foobar", "hundemad"); +// observe(0); } document.addEventListener("disconnectEvent", disconnectEventHandler, false); @@ -75,8 +77,6 @@ function updateEventHandler(e) if(task == null) return; task.setAttribute(name, value); - - //LogEvent("update handled"); } /////// @@ -88,8 +88,7 @@ function updateEventHandler(e) document.addEventListener("messageEvent", messageEventHandler, false); function messageEventHandler(e) { - LogEvent( - "Event: " + e.detail.time.toLocaleString()+": "+e.detail.message + LogEvent(e.detail.time.toString()+": "+e.detail.message ); } |