2018-04-20 07:15:42 +08:00
|
|
|
<html>
|
2018-11-19 07:40:47 +08:00
|
|
|
<head>
|
|
|
|
<meta charset=utf-8 http-equiv="Content-Language" content="en"/>
|
|
|
|
<script src="/example.js"></script>
|
|
|
|
</head>
|
2018-04-20 07:15:42 +08:00
|
|
|
<body>
|
2018-11-19 07:40:47 +08:00
|
|
|
<img src="libwebsockets.org-logo.svg">
|
|
|
|
<img src="strict-csp.svg"><br>
|
|
|
|
|
2018-04-20 07:15:42 +08:00
|
|
|
Hello from the <b>minimal http Server Side Events example</b>.
|
|
|
|
<p>
|
|
|
|
This is a static page served from ./mount-origin/index.html.
|
|
|
|
<p>
|
|
|
|
It connects back to the server at <i>/sse/sourcename</i> using EventSource()<br>
|
2018-11-19 07:40:47 +08:00
|
|
|
and displays the periodic incoming event data below.
|
2018-04-20 07:15:42 +08:00
|
|
|
<p>
|
|
|
|
<textarea id=r readonly cols=40 rows=20></textarea><br>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|