Function tokio_nats::connect
source · pub async fn connect(config: NatsConfig) -> Result<NatsClient, Error>
Expand description
Make a new NATS connection. Return a NatsClient
which can be cloned to obtain multiple handles
to the same connection.