diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/netconnector/UserManager.java b/Server/src/main/java/uulm/teamname/marvelous/server/netconnector/UserManager.java index 4a872de..b2a774c 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/netconnector/UserManager.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/netconnector/UserManager.java @@ -265,4 +265,13 @@ public class UserManager { client.socket.close(CloseFrame.NORMAL); } + + + public int getUserCount() { + return clients.size(); + } + + public boolean containsConnection(WebSocket conn) { + return clients.containsKey(conn); + } }