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:portor barehost:portโ TCP stream transportlocal://pathโ Unix socket / Windows named pipews://host:port/pathโ WebSocket transport
ยงExamples
let client: HelloClient = vox::connect("127.0.0.1:9000").await?;
let reply = client.say_hello().await?;