on">nc = NATS()

await nc.connect(servers=[&#34;nats://demo.nats.io:4222&#34;])

await nc.publish(&#34;updates&#34;, b&#39;All is Well&#39;)

</code></pre>
	</div>
	
	<div class="tab__content">
	<pre id="publish_bytes_ruby_content"><a class="toolbar-icons pull-right" target="_blank" href="https://github.com/nats-io/ruby-nats-examples/blob/master/publish_bytes.rb#L1-7"><i class="mdi mdi-github-circle" title="View on GitHub"></i></a><a class="toolbar-icons pull-right"><i class="mdi mdi-content-copy js-copy" t