Arguments
string
required
The channel to publish to.
TMessage
The message to publish.
Response
The number of clients who received the message.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
const listeners = await redis.publish("my-channel", "my-message");
Publish a message to a channel
const listeners = await redis.publish("my-channel", "my-message");
Was this page helpful?