Messages can be sent to channels from your backend (e.g. an API, a serverless function, etc) and be received by Channel subscribers (on your frontend app, for example).Documentation Index
Fetch the complete documentation index at: https://docs.hop.io/llms.txt
Use this file to discover all available pages before exploring further.
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