pub fn connect(nats_url: &str) -> Result<Connection>
Connect to a NATS server at the given url.
let nc = nats::connect("demo.nats.io")?;