feat: 后端添加严格的下拉表数据校验逻辑,添加新ws消息类型task_dict
This commit is contained in:
@@ -48,7 +48,7 @@ async def connect_websocket(websocket: WebSocket):
|
||||
|
||||
try:
|
||||
|
||||
data = await asyncio.wait_for(websocket.receive_json(), timeout=15.0)
|
||||
data = await asyncio.wait_for(websocket.receive_json(), timeout=1000005.0)
|
||||
if data.get("type") == "Signal" and "Pong" in data.get("data", {}):
|
||||
last_pong = time.monotonic()
|
||||
elif data.get("type") == "Signal" and "Ping" in data.get("data", {}):
|
||||
|
||||
Reference in New Issue
Block a user