Sign in
webkit
/
WebKit
/
c4bddcd65a1497a4ec66d2c5d8cb75761ba329f2
/
.
/
LayoutTests
/
http
/
tests
/
eventsource
/
resources
/
reconnect.php
blob: 85a247de06aa8a8765aa9cc009c42e4186761f17 [
file
] [
log
] [
blame
]
<?
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"
;
}
?>