Added system setting(agent_screen_timer) for selection of JavaScript timer: setTimeout or EventSource for the agent screen

git-svn-id: svn://192.168.202.10@3407 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2021-03-28 02:49:24 +00:00
parent 85cf58aba7
commit cdef190fd2
7 changed files with 97 additions and 13 deletions
+9
View File
@@ -0,0 +1,9 @@
<?php
header('Content-Type: text/event-stream');
header('Cache-Control: no-cache');
$time = date('r');
// If the connection closes, retry in 1 second
echo "retry: {$_GET['refresh_interval']}\n";
echo "data: The server time is: {$time}\n\n";
flush();