Private
Public Access
Integrate direct WebSocket-based leaderboard functionality for real-time updates and requests. Refactor related client-side logic to utilize this new connection.
This commit is contained in:
1 parent
41d15c60d3
commit
ce51a2ba4f
11 files changed
+192
-39
No files matched your search
+4
-1
@@ -367,7 +367,10 @@ func (g *Game) updateLobby() {
|
||||
|
||||
// Spiel wurde gestartet?
|
||||
if g.gameState.Status == "COUNTDOWN" || g.gameState.Status == "RUNNING" {
|
||||
g.appState = StateGame
|
||||
if g.appState != StateGame {
|
||||
g.appState = StateGame
|
||||
g.notifyGameStarted() // Benachrichtige JavaScript dass Spiel startet
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user