root/LayoutTests/http/tests/eventsource/resources/reconnect.php

/* [<][>][^][v][top][bottom][index][help] */
<?php
header("Content-Type: text/event-stream");
$lastEventId = $_SERVER['HTTP_LAST_EVENT_ID'];

if ($lastEventId)
    echo "data: $lastEventId\n\n";
else {
    echo "id: 77\n";
    echo "retry: 300\n";
    echo "data: hello\n\n";
    echo "data: discarded";
}
?>

/* [<][>][^][v][top][bottom][index][help] */