def broadcastChatroom(self): userName = self.request.get('userName') message = self.request.get('message') ChatUser.messageChatUsers(userName, message)
def leaveChatRoom(self): user = self.current_user ChatUser.logout(user)
def makeChatUser(self): return ChatUser(parent = self.key, token = self.token, tokenExpires=self.tokenExpires, )