span class="token punctuation">,</span>
                 <span class="token punctuation">)</span>

<span class="token comment"># Do something with the connection</span>

<span class="token keyword">await</span> nc<span class="token punctuation">.</span>close<span class="token punctuation">(</span><span class="token punctuation">)</span>

</code></pre>
	</div>
	
	<div class="tab__content">
	<pre id="connect_nkey_ts_content"><a class="toolbar-icons pull-right" target="_blank" href="https://github.com/nats-io/