const listeners = await redis.publish("my-topic", "my-message");

Arguments

channel
string
required
The channel to publish to.
message
TMessage
The message to publish.

Response

The number of clients who received the message.
const listeners = await redis.publish("my-topic", "my-message");