publish
publish
- publish(
params):Promise<void>
Publish a message into the specified channel.
Parameters
params
Object containing the parameters of the method.
channel
Channel in which to send the message.
content
The message to send. This can be any JSON-serializable object or value.
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: