Switch from gevent-websocket to gevent-ws (#2439)
* Switch from gevent-websocket to gevent-ws * Return error handling, add gevent_ws source to lib
This commit is contained in:
parent
2862587c15
commit
219b90668f
5 changed files with 268 additions and 24 deletions
|
@ -814,7 +814,7 @@ class UiRequest(object):
|
|||
# Remove websocket from every site (admin sites allowed to join other sites event channels)
|
||||
if ui_websocket in site_check.websockets:
|
||||
site_check.websockets.remove(ui_websocket)
|
||||
return "Bye."
|
||||
return [b"Bye."]
|
||||
else: # No site found by wrapper key
|
||||
ws.send(json.dumps({"error": "Wrapper key not found: %s" % wrapper_key}))
|
||||
return self.error403("Wrapper key not found: %s" % wrapper_key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue