fix cleanup

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-09-02 12:07:33 +02:00
parent e763978b4a
commit 33af9c8e9b

View file

@ -29,7 +29,7 @@ async def handler(websocket):
print(f"Connection closed: {e}")
finally:
# Unregister the client
connected_clients.remove(websocket)
connected_clients.get(websocket.request.path, set()).remove(websocket)
async def main():
# Start the WebSocket server