MCPcopy Create free account
hub / github.com/ermak-dev/cloudpub / run_client

Function run_client

client/src/client.rs:558–568  ·  view source on GitHub ↗
(
    config: Arc<RwLock<ClientConfig>>,
    opts: ClientOpts,
    command_rx: mpsc::Receiver<Message>,
    result_tx: mpsc::Sender<Message>,
)

Source from the content-addressed store, hash-verified

556}
557
558pub async fn run_client(
559 config: Arc<RwLock<ClientConfig>>,
560 opts: ClientOpts,
561 command_rx: mpsc::Receiver<Message>,
562 result_tx: mpsc::Sender<Message>,
563) -> Result<()> {
564 let mut client = Client::<WebsocketTransport>::from(config, opts)
565 .await
566 .context("Failed to create Websocket client")?;
567 client.run(command_rx, result_tx).await
568}
569async fn handle_tcp_data_channel(
570 data_channel: Arc<DataChannel>,
571 local_addr: String,

Callers 2

main_loopFunction · 0.85
buildMethod · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected