Minimal event wrapper accepted by WebSocketConnection callbacks.
| 352 | |
| 353 | |
| 354 | class _EventRef: |
| 355 | """Minimal event wrapper accepted by WebSocketConnection callbacks.""" |
| 356 | |
| 357 | def __init__(self, event_class: str) -> None: |
| 358 | self.event_class = event_class |
| 359 | |
| 360 | def from_json(self, params: Any) -> Any: |
| 361 | return params |
| 362 | |
| 363 | |
| 364 | def _subscribe_to_event(conn: Any, event: str) -> str | None: |
no outgoing calls
no test coverage detected