Transition to Docker-based framework

This commit is contained in:
Jo Eskil
2025-11-13 17:27:18 +01:00
parent 2ce96386e3
commit 5475698fc5
14 changed files with 185 additions and 40 deletions

21
index.html Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>MultiChat Overlay</title>
</head>
<body>
<h1>Chat Messages</h1>
<ul id="messages"></ul>
<script>
const messages = document.getElementById('messages');
const ws = new WebSocket("ws://localhost:8000/ws");
ws.onmessage = function(event) {
const chatMessage = JSON.parse(event.data);
const messageElement = document.createElement('li');
messageElement.textContent = `[${chatMessage.platform}] ${chatMessage.author}: ${chatMessage.message}`;
messages.appendChild(messageElement);
};
</script>
</body>
</html>