Function async_nats::connect[][src]

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

Connect to a NATS server at the given url.

Example

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