async def ws(websocket: WebSocket, client_id: str):
conn = await manager.connect(websocket, client_id)
try:
while True:
await manager.manage(conn)
except WebSocketDisconnectError:
await manager.disconnect(conn)
Can you help me to figure out how to create the test using test_client for this case?
From the example, I have this with the manager is added in an while True:
while I only found the example for simple websocket test at this
https://github.com/Neoteroi/BlackSheep/blob/5f9161d3359e5c7366d20e75fbaee9a1185b5dcb/tests/test_websocket.py#L452C1-L485C1
Can you help me to figure out how to create the test using test_client for this case?