implemented Server Sent events and Heartbeat
This commit is contained in:
@@ -157,5 +157,9 @@ window.onload = function () {
|
||||
$('.menu .addtile .list svg').click(enableAdding);
|
||||
$('.menu .move .list div').click(enableMove);
|
||||
$('.menu .actions .list > div').click(runAction);
|
||||
$(BODY).click(bodyClick);
|
||||
$(BODY).click(bodyClick);
|
||||
var stream = new EventSource("stream");
|
||||
stream.onmessage = function(ev){
|
||||
console.log(ev);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user