view website/src/examples/sse_pull.html @ 1802:ca98dee04e08

add Parsers.json_null
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 21 Apr 2024 21:25:15 -0600
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>