Message Structure
When sending a message to a channel, you must specify 2 fields:- an event name, and
- message data
MESSAGE_CREATE
.
The data field can be any object. In the case of our group chat example, we
might include the message content and author in the data object.
This reference assumes you have already set up the Hop server-side
SDK.
Publish a Message to a Channel
sending-messages.js