Set the handler for incoming notifications from the server.
(self, handler: Callable[[str, dict], None])
| 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.""" |
| 233 | self.notification_handler = handler |
| 234 | |
| 235 | def set_request_handler(self, method: str, handler: RequestHandler): |
| 236 | if handler is None: |
no outgoing calls
no test coverage detected