(self, method: str, params: dict)
| 248 | return msg |
| 249 | |
| 250 | def _request(self, method: str, params: dict) -> dict: |
| 251 | rid = self._next_id |
| 252 | self._next_id += 1 |
| 253 | self._write({"jsonrpc": "2.0", "id": rid, "method": method, "params": params}) |
| 254 | return self._read_response(rid) |
| 255 | |
| 256 | def _notify(self, method: str, params: dict) -> None: |
| 257 | self._write({"jsonrpc": "2.0", "method": method, "params": params}) |
no test coverage detected