}
}
private void broadcastUserList() {
logger.info("Broadcasting updated user list");
UserListUpdateMessage ulum = new UserListUpdateMessage(new ArrayList(connections.keySet()));
for (Session nextSession : connections.values()) {
RemoteEndpoint.Basic remote = nextSession.getBasicRemote();
try {
remote.sendText(ulum.asString());
} catch (IOException ioe) {
logger.warning("Error updating a client " + remote + " : " + ioe.getMessage());
}
}
}