Publish a message to a channel
ably_publish_messageWRITE: publish a message to a channel. Every connected subscriber receives it in real time. This is a real, outward-facing side effect — confirm the channel and payload before calling. REST: POST /channels/{channel}/messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Message payload (string; send JSON as a stringified value). | |
| name | No | Optional event name for the message. | |
| channel | Yes | Channel name to publish to, e.g. 'chat:room1'. | |
| clientId | No | Optional clientId to attribute the message to. |