Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (20 sloc) 492 Bytes
<!-- HTML document served to start the Server Side Events demo
See examples/src/server_side_events.erl for the server -->
<script type="text/javascript">
var es = new EventSource('/sse');
es.onmessage = function(event) {
var h2 = document.querySelector('#date-time');
h2.innerHTML =;
<h1>Yaws Server-Sent Events Time of Day</h1>
<h2 id="date-time" name="date-time">
Jump to Line
Something went wrong with that request. Please try again.