@OnClose
    public void onClose(Session userSession) throws IOException {

        chatroomUsers.remove(userSession);
        Iterator<Session> iterator = chatroomUsers.iterator();
        while (iterator.hasNext()) {
            (iterator.next()).getBasicRemote().sendText(buildJsonUsername());
        }

    }