def handleConnected(self):
     WebSocketBaseSocket.handleConnected(self)
     self.sendMessage(self.server.base.last_message)
 def sendMessage(self, message):
     WebSocketBaseSocket.sendMessage(self, unicode(binascii.hexlify(message)))