feat: Enhance user state management with polling and WebSocket connection handling
This commit is contained in:
Submodule knockoutwhistfrontend updated: 92a7bc0586...2931666649
@@ -34,6 +34,7 @@ class StatusController @Inject()(
|
|||||||
Json.obj(
|
Json.obj(
|
||||||
"status" -> "authenticated",
|
"status" -> "authenticated",
|
||||||
"username" -> user.name,
|
"username" -> user.name,
|
||||||
|
"userId" -> user.id,
|
||||||
"inGame" -> false
|
"inGame" -> false
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -43,6 +44,7 @@ class StatusController @Inject()(
|
|||||||
Json.obj(
|
Json.obj(
|
||||||
"status" -> "authenticated",
|
"status" -> "authenticated",
|
||||||
"username" -> user.name,
|
"username" -> user.name,
|
||||||
|
"userId" -> user.id,
|
||||||
"inGame" -> true,
|
"inGame" -> true,
|
||||||
"gameId" -> game.id
|
"gameId" -> game.id
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user