Skip to main content

connect

Function connect 

Source
pub async fn connect(url: &str, ca_cert: Option<&Path>) -> Result<Relay>
Expand description

Connect to url (ws://host:port/path or wss://...). For wss://, the relay’s certificate must chain to the system’s roots, or to ca_cert (a PEM file) when given; the client certificate Identity::from_env names, if any, goes to a relay that asks for one.