29 lines
604 B
Plaintext
Raw Normal View History

2020-05-31 04:48:02 +02:00
<!DOCTYPE html>
<html>
<head>
<title>Blab</title>
</head>
2020-06-01 16:00:40 +02:00
2020-05-31 04:48:02 +02:00
<body>
<h1>Hello, world!</h1>
<ul>
{% for object in objects %}
<li>{{ object.name }} @ {{ object.x }}, {{ object.y }}</li>
{% endfor %}
</ul>
2020-06-01 16:00:40 +02:00
<script>
ws = new WebSocket("ws://localhost:3030/state");
ws.onopen = function() {
console.log("Connected");
}
ws.onmessage = function(e) {
console.log("From Server:" + e.data);
};
</script>
2020-05-31 04:48:02 +02:00
</body>
</html>