feat: Update routing and websocket configuration for game state management #109

Merged
Janis merged 2 commits from feat/BAC-35 into main 2025-12-14 15:10:43 +01:00
6 changed files with 15 additions and 17 deletions
Showing only changes of commit e5267e0e92 - Show all commits

View File

@@ -74,6 +74,10 @@ class UserSession(val user: User, val host: Boolean, val gameLobby: GameLobby) e
} }
case "ReturnToLobby" => case "ReturnToLobby" =>
gameLobby.returnToLobby(this) gameLobby.returnToLobby(this)
case "LeaveGame" =>
gameLobby.leaveGame(user.id, false)
case _ =>
println("Unknown event type: " + eventType + " with data: " + data)
} }
} }