---
title: "SUBSCRIBE"
url: "https://docs.yugabyte.com/stable/yedis/api/subscribe/"
---

# SUBSCRIBE

`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`](/stable/yedis/api/pubsub/ "pubsub"), [`publish`](/stable/yedis/api/publish/ "publish"), [`subscribe`](/stable/yedis/api/subscribe/ "subscribe"), [`unsubscribe`](/stable/yedis/api/unsubscribe/ "unsubscribe"), [`psubscribe`](/stable/yedis/api/psubscribe/ "psubscribe"), [`punsubscribe`](/stable/yedis/api/punsubscribe/ "punsubscribe")
