mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-25 22:21:32 +00:00
Remove unnecessary overrides from ZMQWebSocketHandler
This commit is contained in:
parent
bcd31de852
commit
0f6ec24d45
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user