pub async fn register_command_channel(
state: &AppState,
client_id: ClientId,
) -> Receiver<ClientCommand>Expand description
Create and register the command channel for a running client. Call once the connection is established; move the returned receiver into the loop task.