def onOpen(self): WebSocketBaseSocket.onOpen(self) self.sendMessage(self.factory._last_message)
def sendMessage(self, message): WebSocketBaseSocket.sendMessage(self, binascii.hexlify(message))