server now sends, client receives lobby player count
This commit is contained in:
@@ -80,6 +80,7 @@ class LobbyManager:
|
||||
"response": "client_joined_lobby",
|
||||
"new_client_id": client_id,
|
||||
"new_client_name": client_name,
|
||||
"connected_client_count": lobby_manager.get_lobby_player_count(lobby_id),
|
||||
})
|
||||
)
|
||||
|
||||
@@ -94,6 +95,7 @@ class LobbyManager:
|
||||
"response": "client_left_lobby",
|
||||
"status": "ok",
|
||||
"client_name": client_name,
|
||||
"connected_client_count": self.get_lobby_player_count(lobby_id),
|
||||
}),
|
||||
)
|
||||
print(f"Deleted client {client_id} from lobby {lobby_id}")
|
||||
|
||||
Reference in New Issue
Block a user