예제 #1
0
파일: client.py 프로젝트: trantrungtin/idb
 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
예제 #3
0
async def client(client: CompanionClient) -> bytes:
    response = await client.stub.screenshot(ScreenshotRequest())
    return response.image_data