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