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

Arguments

channel
str
required
The channel to publish to.
message
str
The message to publish.

Response

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