fix: preserve background connection state and durable disconnect logs

This commit is contained in:
AttilaNet
2026-11-11 11:05:49 +08:00
parent e26d37e9c5
commit 654567caa3
14 changed files with 1622 additions and 48 deletions
+1 -1
View File
@@ -990,8 +990,8 @@ class Engine:
def keep_alive(self):
if self.demo:
return "离线演示无需心跳"
self.last_heartbeat = time.monotonic()
self.client.call("heartBeatService/keepAlive")
self.last_heartbeat = time.monotonic()
return "会话心跳已更新"
@single_flight