示例#1
0
 async def screenshot(self) -> bytes:
     response = await self.stub.screenshot(ScreenshotRequest())
     return response.image_data
示例#2
0
文件: grpc.py 项目: zeng4250538/idb
 async def screenshot(self) -> bytes:
     async with self.get_stub() as stub:
         response = await stub.screenshot(ScreenshotRequest())
         return response.image_data
async def client(client: CompanionClient) -> bytes:
    response = await client.stub.screenshot(ScreenshotRequest())
    return response.image_data