Remove unnecessary overrides from ZMQWebSocketHandler

This commit is contained in:
Kristóf Tóth 2018-02-11 12:04:18 +01:00
parent bcd31de852
commit 0f6ec24d45

View File

@ -26,15 +26,9 @@ class ZMQWebSocketHandler(WebSocketHandler):
log.debug('Received on WebSocket: {}'.format(message)) log.debug('Received on WebSocket: {}'.format(message))
self.send_message(*self.make_response(json.loads(message))) self.send_message(*self.make_response(json.loads(message)))
def make_response(self, message):
raise NotImplementedError
def send_message(self, message: dict, anchor: str = None): def send_message(self, message: dict, anchor: str = None):
self._event_handler_connector.send_message(message, anchor) self._event_handler_connector.send_message(message, anchor)
def on_close(self):
pass
# much secure, very cors, wow # much secure, very cors, wow
def check_origin(self, origin): def check_origin(self, origin):
return True return True