Sending Messages

    All of the NATS clients are designed to make sending a message simple. For example, to send the string “All is Well” to the “updates” subject as a UTF-8 string of bytes you would do:

    {% tabs %} {% tab title=”Go” %}

    {% endtab %}

    {% endtab %}

    {% tab title=”JavaScript” %}

    {% endtab %}

    {% endtab %}

    {% tab title=”Ruby” %}

    {% endtab %} {% endtabs %}