feat: added userCount and containsConnection methods to UserManager
This commit is contained in:
parent
8d536ddcb0
commit
5f30982cfb
@ -265,4 +265,13 @@ public class UserManager {
|
|||||||
|
|
||||||
client.socket.close(CloseFrame.NORMAL);
|
client.socket.close(CloseFrame.NORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public int getUserCount() {
|
||||||
|
return clients.size();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean containsConnection(WebSocket conn) {
|
||||||
|
return clients.containsKey(conn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user