From b4bf2ceb4dc76ac388124b9705a1aa9e577582af Mon Sep 17 00:00:00 2001 From: Janis Date: Wed, 7 Jan 2026 21:42:21 +0100 Subject: [PATCH] feat: Enhance user state management with polling and WebSocket connection handling --- knockoutwhistfrontend | 2 +- knockoutwhistweb/app/controllers/StatusController.scala | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/knockoutwhistfrontend b/knockoutwhistfrontend index 92a7bc0..2931666 160000 --- a/knockoutwhistfrontend +++ b/knockoutwhistfrontend @@ -1 +1 @@ -Subproject commit 92a7bc05866b77053ebb1d074ad207be8348f9d6 +Subproject commit 29316666491276abe5d2083ee6c39b5ac553fe5f diff --git a/knockoutwhistweb/app/controllers/StatusController.scala b/knockoutwhistweb/app/controllers/StatusController.scala index e57f5a4..adca09b 100644 --- a/knockoutwhistweb/app/controllers/StatusController.scala +++ b/knockoutwhistweb/app/controllers/StatusController.scala @@ -34,6 +34,7 @@ class StatusController @Inject()( Json.obj( "status" -> "authenticated", "username" -> user.name, + "userId" -> user.id, "inGame" -> false ) ) @@ -43,6 +44,7 @@ class StatusController @Inject()( Json.obj( "status" -> "authenticated", "username" -> user.name, + "userId" -> user.id, "inGame" -> true, "gameId" -> game.id )