implement private chatting, broadcasting, registering new user and getting online users.