SUBSCRIBE
This page documents the preview (v2.21) version. Preview includes features under active development and is for development and testing only. For production, use the stable (v2024.1) version.
SUBSCRIBE
Synopsis
SUBSCRIBE channel [channel ...]
This command subscribes the client to the specified channel(s). The client will receive a message whenever a publisher sends a message to any of the channels that it has subscribed to.
See also
pubsub,
publish,
subscribe,
unsubscribe,
psubscribe,
punsubscribe