This commit is contained in:
qiangyanwen 2022-12-16 13:40:26 +08:00
parent 28fc9e0e65
commit 4d122b554f
1 changed files with 0 additions and 1 deletions

View File

@ -30,7 +30,6 @@ async def websocket_endpoint(
await asyncio.wait_for(websocket.receive_text(), 3) await asyncio.wait_for(websocket.receive_text(), 3)
await manager.send_json(message, websocket) await manager.send_json(message, websocket)
except asyncio.TimeoutError: except asyncio.TimeoutError:
print("推送数据......", message)
await manager.send_json(message, websocket) await manager.send_json(message, websocket)
except (WebSocketDisconnect, RuntimeError): except (WebSocketDisconnect, RuntimeError):
logger.info("ws开始关闭连接.....") logger.info("ws开始关闭连接.....")