update:重启服务器功能功能

This commit is contained in:
CGD
2025-05-07 14:36:08 +08:00
parent a26bee3696
commit e7054ea13f
2 changed files with 36 additions and 0 deletions
@@ -136,5 +136,8 @@ async def handleTextMessage(conn, message):
}
)
)
# 重启服务器
elif msg_json["action"] == "restart":
await conn.handle_restart(msg_json)
except json.JSONDecodeError:
await conn.websocket.send(message)