Hello,
I would like to know if it’s possible to get all connected member nickname.
I can get all usernames, but I dont figured out to get all nicknames.
Thank you for your help.
Collection sessions = sessionManager.getSessions();
List<String> result = new ArrayList<String>(sessions.size());
for(ClientSession cs : sessions) {
try {
result.add(cs.getUsername());
} catch (UserNotFoundException e) {
}
}