chatroom long polling server side implement