(self, ws, session_id, target_id)
| 190 | |
| 191 | class CdpBase: |
| 192 | def __init__(self, ws, session_id, target_id): |
| 193 | self.ws = ws |
| 194 | self.session_id = session_id |
| 195 | self.target_id = target_id |
| 196 | self.channels = defaultdict(set) |
| 197 | self.id_iter = itertools.count() |
| 198 | self.inflight_cmd = {} |
| 199 | self.inflight_result = {} |
| 200 | |
| 201 | async def execute(self, cmd: Generator[dict, T, Any]) -> T: |
| 202 | """Execute a command on the server and wait for the result. |