Mercurial Hosting > luan
view website/src/examples/sse_pull.html @ 2117:1e247cd012ee ssltesting tip
use site_dir/ssl for all ssl related files; raise error() on empty acme-tiny output.
| author | Violet7 |
|---|---|
| date | Tue, 06 Jan 2026 09:01:44 -0800 |
| parents | 28cd9b3abdb3 |
| children |
line wrap: on
line source
<!doctype html> <html lang="en"> <head> <style> body { white-space: pre; } </style> <script> let eventSource = new EventSource(location.origin+'/examples/sse_push.html'); eventSource.onmessage = function(event) { document.body.textContent = event.data; }; </script> </head> <body>pull server-sent events</body> </html>
