fix: 按 K-00 约定修复 Python SDK 断线重交与退避

This commit is contained in:
Nixevol
2026-09-30 16:24:13 +08:00
parent 55aa0ccf53
commit 537cef0e32
10 changed files with 564 additions and 126 deletions
+1
View File
@@ -48,6 +48,7 @@ class AsyncClient:
self._client.on_connection(handler)
async def connect(self, url: str, endpoint_id: str, **kwargs: Any) -> None:
self._client._loop = asyncio.get_running_loop()
await asyncio.to_thread(self._client.connect, url, endpoint_id, **kwargs)
async def close(self) -> None: