You need to add this code to the agc/vicidial.php file:
1- Add this variable around line 4708
var source = null
2- Looks for setTimeout("all_refresh()", refresh_interval)
around line 19708 and replace it by:
if(typeof(EventSource) !== "undefined") {
if (!source) {
source = new EventSource("sse.php?refresh_interval=" + refresh_interval);
source.onmessage = function(event) {
// console.log('event', event);
all_refresh();
};
}
} else {
setTimeout("all_refresh()", refresh_interval);
}
3- Add the file sse.php
to the dir agc/