support jwt token in place of ws token

This commit is contained in:
Timothy Pogue
2022-09-09 11:38:42 -06:00
parent 09679cc798
commit 6cbc03a96a
3 changed files with 34 additions and 14 deletions

View File

@@ -132,6 +132,10 @@ async def message_endpoint(
else:
await ws.close()
except RuntimeError:
# WebSocket was closed
await channel_manager.on_disconnect(ws)
except Exception as e:
logger.error(f"Failed to serve - {ws.client}")
# Log tracebacks to keep track of what errors are happening