Mercurial Hosting > luan
view website/src/examples/sse_pull.html @ 1996:d5c21ca9703e default tip
move threads to admin
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 04 Jul 2025 11:39:41 -0600 |
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>