Remove unnecessary spirit message on client connection

This commit is contained in:
2025-05-28 05:52:14 +02:00
parent 0433fd3691
commit 22bdbcf466

View File

@@ -71,9 +71,6 @@ function hasOpenClients() {
wss.on('connection', (socket) => {
console.log('Neuer Client verbunden');
// Sende sofort einen Spirit an den neuen Client
socket.send(JSON.stringify({ type: 'spirit', data: spirits[currentSpiritIndex] }));
// Starte Timer falls das der erste Client ist
if (wss.clients.size === 1) {
startSpiritTimer();