summaryrefslogtreecommitdiff
path: root/src/commands/unsubscribe.json
blob: 530facde447c7f129858136b06c0c226a2746144 (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": "Stops listening to messages posted to 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
            }
        ]
    }
}