Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

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-channel", "my-message");