summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/subscribe.md
blob: 2715c639e56784381944999840f5a99b735e2aa3 (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`, `PSUBSCRIBE`, `UNSUBSCRIBE`,
`PUNSUBSCRIBE`, `PING`, `RESET` and `QUIT` commands.

@history

- `>= 6.2`: `RESET` can be called to exit subscribed state.