(
self, commands: list[dict], request_id: Optional[str] = None
)
| 380 | return self.send_json(msg) |
| 381 | |
| 382 | def send_batch( |
| 383 | self, commands: list[dict], request_id: Optional[str] = None |
| 384 | ) -> Optional[dict]: |
| 385 | msg = { |
| 386 | "type": MessageType.BATCH, |
| 387 | "id": request_id or str(uuid.uuid4()), |
| 388 | "commands": commands, |
| 389 | } |
| 390 | return self.send_json(msg) |
| 391 | |
| 392 | def has_data_available(self, timeout: float = 0.0) -> bool: |
| 393 | if not self.socket: |
no test coverage detected