publish
publish
- publish(
params):Promise<void>
Publish a message into the specified channel.
Parameters
params
Configuration object for publishing a message
params.channel
Channel in which to send the message.
params.content
The message to send. This can be any JSON-serializable object.
params.meta
Metadata associated with the message. There are no requirements on the content of metadata.
Returns
Promise<void>
Examples
Publishing a message as a string:
Publishing a message as an object: