fix: 按 K-00 约定修复 Python SDK 断线重交与退避
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user