summaryrefslogtreecommitdiffstats
path: root/src/commands/subscribe.json
blob: fa6ac076a2ab1ad9a369a42d83580b6a6345bf5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
    "SUBSCRIBE": {
        "summary": "Listen for messages published to the given channels",
        "complexity": "O(N) where N is the number of channels to subscribe to.",
        "group": "pubsub",
        "since": "2.0.0",
        "arity": -2,
        "function": "subscribeCommand",
        "history": [],
        "command_flags": [
            "PUBSUB",
            "NOSCRIPT",
            "LOADING",
            "STALE",
            "SENTINEL"
        ],
        "arguments": [
            {
                "name": "channel",
                "type": "string",
                "multiple": true
            }
        ]
    }
}