summaryrefslogtreecommitdiffstats
path: root/src/commands/unsubscribe.json
blob: d98aaa278637a4e78b6d1a28731ced319114bbf4 (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
{
    "UNSUBSCRIBE": {
        "summary": "Stop listening for messages posted to the given channels",
        "complexity": "O(N) where N is the number of clients already subscribed to a channel.",
        "group": "pubsub",
        "since": "2.0.0",
        "arity": -1,
        "function": "unsubscribeCommand",
        "command_flags": [
            "PUBSUB",
            "NOSCRIPT",
            "LOADING",
            "STALE",
            "SENTINEL"
        ],
        "arguments": [
            {
                "name": "channel",
                "type": "string",
                "optional": true,
                "multiple": true
            }
        ]
    }
}