Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (20 sloc) 0.492 kb
c4fd143 @vinoski add support for W3C Server-Sent Events
vinoski authored
1 <!-- HTML document served to start the Server Side Events demo
2 See examples/src/server_side_events.erl for the server -->
3 <html>
4 <head>
5 <script type="text/javascript">
6 var es = new EventSource('/sse');
7 es.onmessage = function(event) {
6948590 @vinoski minor changes to server-sent events
vinoski authored
8 var h2 = document.querySelector('#date-time');
9 h2.innerHTML = event.data;
c4fd143 @vinoski add support for W3C Server-Sent Events
vinoski authored
10 }
11 </script>
12 </head>
13 <body>
14 <center>
15 <h1>Yaws Server-Sent Events Time of Day</h1>
16 <h2 id="date-time" name="date-time">
17 </h2>
18 </center>
19 </body>
20 </html>
Something went wrong with that request. Please try again.