Skip to content

Commit

Permalink
fix: listener count not sent on initial connection
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethnym committed Jul 27, 2024
1 parent 16e69ff commit 78ea024
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 78ea024

Please sign in to comment.