mo.nats.io&#34;, nats.Name(&#34;API PublishBytes Example&#34;))
if err != nil {
	log.Fatal(err)
}
defer nc.Close()

if err := nc.Publish(&#34;updates&#34;, []byte(&#34;All is Well&#34;)); err != nil {
	log.Fatal(err)
}
</code></pre>
	</div>
	
	<div class="tab__content">
	<pre id="publish_bytes_java_content"><a class="toolbar-icons pull-right" target="_blank" href="https://github.com/nats-io/java-nats-examples/blob/master/src/main/java/io/nats/examples/PublishBytes.java#L13-21"><i class="mdi mdi-github-circl