Publish a message to a channel
const listeners = await redis.publish("my-topic", "my-message");
The channel to publish to.
The message to publish.
The number of clients who received the message.
Was this page helpful?