fix: listener count not broadcasted initially
This commit is contained in:
@@ -147,6 +147,8 @@ async def ws_endpoint(ws: WebSocket):
|
|||||||
ws_connection_manager.disconnect(ws)
|
ws_connection_manager.disconnect(ws)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
await ws_connection_manager.broadcast(f"{listener_counter.count()}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
msg = await ws.receive_text()
|
msg = await ws.receive_text()
|
||||||
|
Reference in New Issue
Block a user