Skip to main content

register_command_channel

Function register_command_channel 

Source
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.