annotate website/src/examples/sse_pull.html @ 1758:27a2530f04b6
 
fix reload nginx from startup script
 | author | 
 Vadim Filimonov <fffilimonov@yandex.ru> | 
 | date | 
 Mon, 20 Feb 2023 09:02:20 +0200 | 
 | parents | 
 9713f7fd50b3  | 
 | children | 
 28cd9b3abdb3  | 
 | rev | 
   line source | 
  
| 
1738
 | 
     1 <!doctype html>
 | 
| 
 | 
     2 <html>
 | 
| 
 | 
     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>
 |