1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

docs(*): additional clarification of Pub/Sub section (#1489)

The previous phrasing wasn't clear to me. The oxford comma is necessary to avoid ambiguity.
This commit is contained in:
German Capuano
2020-02-03 09:45:00 -05:00
committed by GitHub
parent 87e382a1df
commit 1f082aca54

View File

@@ -532,8 +532,8 @@ sub.subscribe("a nice channel");
```
When a client issues a `SUBSCRIBE` or `PSUBSCRIBE`, that connection is put into
a "subscriber" mode. At that point, only commands that modify the subscription
set are valid and quit (and depending on the redis version ping as well). When
a "subscriber" mode. At that point, the only valid commands are those that modify the subscription
set, and quit (also ping on some redis versions). When
the subscription set is empty, the connection is put back into regular mode.
If you need to send regular commands to Redis while in subscriber mode, just