feat: added userCount and containsConnection methods to UserManager

This commit is contained in:
Yannik Bretschneider 2021-06-08 03:16:13 +02:00
parent 8d536ddcb0
commit 5f30982cfb

View File

@ -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);
}
}