itle="Copy to Clipboard"></i></a><span class="copy-msg pull-right"></span><code class="language-ruby">require &#39;nats/client&#39;

NATS.start(servers:[&#34;nats://127.0.0.1:4222&#34;]) do |nc|
  nc.publish(&#34;updates&#34;, &#34;All is Well&#34;)
end
</code></pre>
	</div>
	
	<div class="tab__content">
	<pre id="publish_bytes_ts_content"><a class="toolbar-icons pull-right" target="_blank" href="https://github.com/nats-io/ts-nats-examples/blob/master/src/publisher_samples.ts#L6-12"><i class="mdi mdi-github