nats:

nats:

[1] nats-io/go-nats: Golang client for NATS, the cloud native messaging system. () <https://github.com/nats-io/go-nats>

// Note that if credentials are specified in the initial URLs, they take

// precedence on the credentials specfied through the options.

// For instance, in the connect call below, the client library will use

// the user "my" and password "pwd" to connect to locahost:4222, however,

// it will use username "foo" and password "bar" when (re)connecting to

// a different server URL that it got as part of the auto-discovery.

nc, err = nats.Connect("nats://my:pwd@localhost:4222", nats.UserInfo("foo", "bar"))

[2] nats-io/node-nats: Node.js client for NATS, the cloud native messaging system. () <https://github.com/nats-io/node-nats>

// Connect with token in url

var nc = NATS.connect("nats://mytoken@localhost:4222");