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:
@@ -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();
|
||||
Reference in New Issue
Block a user