add test
This commit is contained in:
parent
16ccf161ed
commit
48fdfdcf77
|
|
@ -27,4 +27,5 @@ async def websocket_endpoint(
|
||||||
"cpu_info": await get_cpu_info(), "memory_info": await ge_mem_info()}
|
"cpu_info": await get_cpu_info(), "memory_info": await ge_mem_info()}
|
||||||
await manager.send_json(message, websocket)
|
await manager.send_json(message, websocket)
|
||||||
except (WebSocketDisconnect, RuntimeError):
|
except (WebSocketDisconnect, RuntimeError):
|
||||||
|
logger.info("ws开始关闭连接.....")
|
||||||
manager.disconnect(websocket)
|
manager.disconnect(websocket)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue