Mercurial Hosting > luan
view website/src/examples/sse_pull.html @ 1930:2b5eccebddd9
increase read timeout for sse
author | fffilimonov |
---|---|
date | Fri, 02 May 2025 14:20:56 +0300 |
parents | 9713f7fd50b3 |
children | 28cd9b3abdb3 |
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>