Send a message to all subscribers of a channel.

Section: Pub/Sub

Publish a message

bash
bash
PUBLISH events:user '{"userId":1,"action":"login"}'

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Pub/Sub
Subscribe to channels
Listen for messages on one or more channels.
OpenIn sheetbashsame section
Subscribe by pattern
Listen on channels that match a pattern.
OpenIn sheetbashsame section
Unsubscribe from channels
Stop listening to one or more channels.
OpenIn sheetbashsame section
Unsubscribe from patterns
Stop listening to pattern subscriptions.
OpenIn sheetbashsame section
List active Pub/Sub channels
Show active channels with subscribers.
OpenIn sheetbashsame section
Count subscribers per channel
Return subscriber counts for channels.
OpenIn sheetbashsame section