PubSub
PUBLISH
Publish a message to a channel
const listeners = await redis.publish("my-topic", "my-message");
Arguments
channel
string
requiredThe 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");