diff options
Diffstat (limited to '')
-rw-r--r-- | src/commands/subscribe.json | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/commands/subscribe.json b/src/commands/subscribe.json new file mode 100644 index 0000000..fa6ac07 --- /dev/null +++ b/src/commands/subscribe.json @@ -0,0 +1,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 + } + ] + } +} |