annotate website/src/examples/sse_pull.html @ 2046:e0896f65c847
acme-tiny tip
fix temp_dir_string initiation
| author |
Violet7 |
| date |
Sun, 09 Nov 2025 02:38:09 -0800 |
| parents |
28cd9b3abdb3 |
| children |
|
| rev |
line source |
|
1738
|
1 <!doctype html>
|
|
1931
|
2 <html lang="en">
|
|
1738
|
3 <head>
|
|
|
4 <style>
|
|
|
5 body {
|
|
|
6 white-space: pre;
|
|
|
7 }
|
|
|
8 </style>
|
|
|
9 <script>
|
|
|
10 let eventSource = new EventSource(location.origin+'/examples/sse_push.html');
|
|
|
11 eventSource.onmessage = function(event) {
|
|
|
12 document.body.textContent = event.data;
|
|
|
13 };
|
|
|
14 </script>
|
|
|
15 </head>
|
|
|
16 <body>pull server-sent events</body>
|
|
|
17 </html>
|