Make ZMQWebSocketHandler "abstract"

This commit is contained in:
Kristóf Tóth 2018-02-21 16:46:25 +01:00
parent 31ba6cb623
commit 26538a4ad9

View File

@ -32,6 +32,9 @@ class ZMQWebSocketHandler(WebSocketHandler):
log.debug('Received on WebSocket: {}'.format(message))
self.send_message(*self.make_response(json.loads(message)))
def make_response(self, message):
raise NotImplementedError
def send_message(self, message: dict, key: str = None):
self._event_handler_connector.send_message(message, key)