def sendLoginAuthentification(self): LoginModel = RequestModel(0, self.Login) self.WebSockets.sendTextMessage(LoginModel.to_JSON())
def OnProcessTextMessage(self, message): RequestDecoded = RequestModel.from_JSON(message) self.SwitchRequestMethod(RequestDecoded.request)(RequestDecoded.Message)