implement all methods for consistency

This commit is contained in:
Jakob Ketterl 2019-09-28 00:27:42 +02:00
parent cbc7b73b1d
commit 00febdf255

View File

@ -39,6 +39,9 @@ class Client(object):
def mp_send(self, data): def mp_send(self, data):
self.multiprocessingPipe.put(data, block=False) self.multiprocessingPipe.put(data, block=False)
def handleTextMessage(self, conn, message):
pass
def handleBinaryMessage(self, conn, data): def handleBinaryMessage(self, conn, data):
logger.error("unsupported binary message, discarding") logger.error("unsupported binary message, discarding")
@ -307,3 +310,9 @@ class WebSocketMessageHandler(object):
if not self.handshake: if not self.handshake:
logger.warning("not answering client request since handshake is not complete") logger.warning("not answering client request since handshake is not complete")
return return
def handleBinaryMessage(self, conn, data):
pass
def handleClose(self):
pass