// Only now make the connection (this can take a short while)
include "../inc/connection.php";
+header("Content-type: application/json; charset=utf-8");
// Server Side Events
if (!defined('NO_EVENT_STREAM_HEADER'))
header('Content-Type: text/event-stream');
}
}
-flush_completely();
+if (!defined('NO_EVENT_STREAM_HEADER'))
+ flush_completely();
/* Send server-sent events (SSE) message */
function send_sse($json)