summaryrefslogtreecommitdiffstats
path: root/src/commands/subscribe.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/subscribe.json')
-rw-r--r--src/commands/subscribe.json25
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..bdf12b7
--- /dev/null
+++ b/src/commands/subscribe.json
@@ -0,0 +1,25 @@
+{
+ "SUBSCRIBE": {
+ "summary": "Listens for messages published to 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
+ }
+ ]
+ }
+}