[][src]Function async_nats::connect

pub async fn connect(nats_url: &str) -> Result<Connection>

Connect to a NATS server at the given url.

Example

let nc = async_nats::connect("demo.nats.io").await?;