summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/subscribe.md
blob: bbc71272f9adcf62dfbf92a62fa932fce1441f98 (plain)
1
2
3
4
5
6
7
8
9
Subscribes the client to the specified channels.

Once the client enters the subscribed state it is not supposed to issue any
other commands, except for additional `SUBSCRIBE`, `SSUBSCRIBE`, `PSUBSCRIBE`, `UNSUBSCRIBE`, `SUNSUBSCRIBE`, 
`PUNSUBSCRIBE`, `PING`, `RESET` and `QUIT` commands.

## Behavior change history

*   `>= 6.2.0`: `RESET` can be called to exit subscribed state.