<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite xml:lang="en">nats-io/go-nats: Golang client for NATS, the cloud native messaging system.</cite>
(<time>2017-02-11 19:15:13 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/nats-io/go-nats">https://github.com/nats-io/go-nats</anchor-external></figcaption><blockquote><p>// Note that if credentials are specified in the initial URLs, they take</p><p>// precedence on the credentials specfied through the options.</p><p>// For instance, in the connect call below, the client library will use</p><p>// the user &quot;my&quot; and password &quot;pwd&quot; to connect to locahost:4222, however,</p><p>// it will use username &quot;foo&quot; and password &quot;bar&quot; when (re)connecting to</p><p>// a different server URL that it got as part of the auto-discovery.</p><p>nc, err = nats.Connect(&quot;nats://my:pwd@localhost:4222&quot;, nats.UserInfo(&quot;foo&quot;, &quot;bar&quot;))</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <cite xml:lang="en">nats-io/node-nats: Node.js client for NATS, the cloud native messaging system.</cite>
(<time>2017-02-11 19:15:41 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/nats-io/node-nats">https://github.com/nats-io/node-nats</anchor-external></figcaption><blockquote><p>// Connect with token in url</p><p>var nc = NATS.connect(&quot;nats://mytoken@localhost:4222&quot;);</p></blockquote></figure></body></html>