Register the callback function to handle notifications from the server to the client for the given method
(self, method: str, cb: Callable[[Any], None])
| 336 | self.on_request_handlers[method] = cb |
| 337 | |
| 338 | def on_notification(self, method: str, cb: Callable[[Any], None]) -> None: |
| 339 | """ |
| 340 | Register the callback function to handle notifications from the server to the client for the given method |
| 341 | """ |
| 342 | self.on_notification_handlers[method] = cb |
| 343 | |
| 344 | def on_any_notification(self, cb: Callable[[str, Any], None]) -> None: |
| 345 | """ |
no outgoing calls
no test coverage detected