nanover.websocket.client.command_client module
- class nanover.websocket.client.command_client.CommandClient(connection: ClientConnection)
Bases:
WebsocketClient,CommandServiceMixin of methods for implementing CommandService
- property commands: dict[str, CommandRegistration]
- register_command(name: str, callback: Callable[[...], dict | None], default_arguments: dict | None = None) None
- run_command(name: str, arguments: dict | None = None) Future
- run_command_blocking(name: str, **arguments)
- unregister_command(name: str) None