fix: listener count not sent on initial connection

This commit is contained in:
2024-07-27 15:54:09 +01:00
parent 16e69ff0ae
commit 78ea0244de

View File

@@ -111,6 +111,8 @@ async def ws_endpoint(ws: WebSocket):
await ws.close()
ws_connection_manager.disconnect(ws)
await ws.send_text(f"{len(active_listeners)}")
try:
while True:
msg = await ws.receive_text()