Skip to main content

connect

Function connect 

Source
pub fn connect<Client: FromVoxSession>(
    addr: impl Display,
) -> ConnectBuilder<'static, Client>
Expand description

Connect to a remote vox service, returning a typed client.

The address string determines the transport:

  • tcp://host:port or bare host:port โ€” TCP stream transport
  • local://path โ€” Unix socket / Windows named pipe
  • ws://host:port/path โ€” WebSocket transport

ยงExamples

let client: HelloClient = vox::connect("127.0.0.1:9000").await?;
let reply = client.say_hello().await?;