[FIG(quote)[
[FIGCAPTION[
[1] [CITE@en[nats-io/go-nats: Golang client for NATS, the cloud native messaging system.]]
([TIME[2017-02-11 19:15:13 +09:00]])
<https://github.com/nats-io/go-nats>
]FIGCAPTION]

> // 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"))

]FIG]


[FIG(quote)[
[FIGCAPTION[
[2] [CITE@en[nats-io/node-nats: Node.js client for NATS, the cloud native messaging system.]]
([TIME[2017-02-11 19:15:41 +09:00]])
<https://github.com/nats-io/node-nats>
]FIGCAPTION]

> 
> // Connect with token in url
> var nc = NATS.connect("nats://mytoken@localhost:4222");

]FIG]
