-circle" title="View on GitHub"></i></a><a class="toolbar-icons pull-right"><i class="mdi mdi-content-copy js-copy" title="Copy to Clipboard"></i></a><span class="copy-msg pull-right"></span><code class="language-javascript">let nc = await connect({
    url: &#34;nats://demo.nats.io:4222&#34;,
    payload: Payload.STRING
});
nc.publish(&#39;updates&#39;, &#39;All is Well&#39;);
</code></pre>
	</div>
	
</div>
