Send a JSON-RPC notification (no response expected). Args: method: Method name params: Optional parameters
(self, method: str, params: dict | None = None)
| 214 | self._pending_inline_callbacks.pop(request_id, None) |
| 215 | |
| 216 | async def notify(self, method: str, params: dict | None = None): |
| 217 | """ |
| 218 | Send a JSON-RPC notification (no response expected). |
| 219 | |
| 220 | Args: |
| 221 | method: Method name |
| 222 | params: Optional parameters |
| 223 | """ |
| 224 | message = { |
| 225 | "jsonrpc": "2.0", |
| 226 | "method": method, |
| 227 | "params": params or {}, |
| 228 | } |
| 229 | await self._send_message(message) |
| 230 | |
| 231 | def set_notification_handler(self, handler: Callable[[str, dict], None]): |
| 232 | """Set the handler for incoming notifications from the server.""" |
nothing calls this directly
no test coverage detected