mirror of
https://github.com/supanadit/geo-smart-system.git
synced 2024-11-24 17:46:21 +00:00
18 lines
323 B
HTML
18 lines
323 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title></title>
|
|
</head>
|
|
<p id="test"></p>
|
|
<body>
|
|
<script>
|
|
const id = document.getElementById("test");
|
|
const stream = new EventSource("/stream");
|
|
stream.onmessage = function (event) {
|
|
id.innerText = event.data
|
|
};
|
|
</script>
|
|
</body>
|
|
</html>
|