Mercurial Hosting > luan
view website/src/examples/sse_pull.html @ 1876:d74dca32fe7b default tip
swing
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 05 Apr 2025 19:22:51 -0600 (79 minutes ago) |
parents | 9713f7fd50b3 |
children |
line wrap: on
line source
<!doctype html> <html> <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>