upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhodlbod <jstaab@protonmail.com>2023-12-22 06:57:44 -0800
committerGitHub <noreply@github.com>2023-12-22 06:57:44 -0800
commitb946a8613584a8d9791d42d4b7c7abe1d820567b (patch)
treebae99122e4c76e6ca059a571ee5ac1bf14cf472b
parentffc32c43e6b08ac54d63b21c8887f0f073c716ba (diff)
parentd30f03316f0b3ab56faba94b0abfcb9041b81764 (diff)
Merge pull request #942 from schmijos/patch-1
Emphasis on multiple filters in NIP-01
-rw-r--r--01.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/01.md b/01.md
index 99c991a..0cf03ed 100644
--- a/01.md
+++ b/01.md
@@ -101,7 +101,7 @@ Relays expose a websocket endpoint to which clients can connect. Clients SHOULD
101Clients can send 3 types of messages, which must be JSON arrays, according to the following patterns: 101Clients can send 3 types of messages, which must be JSON arrays, according to the following patterns:
102 102
103 * `["EVENT", <event JSON as defined above>]`, used to publish events. 103 * `["EVENT", <event JSON as defined above>]`, used to publish events.
104 * `["REQ", <subscription_id>, <filters JSON>...]`, used to request events and subscribe to new updates. 104 * `["REQ", <subscription_id>, <filters JSON>, ...]`, used to request events and subscribe to new updates.
105 * `["CLOSE", <subscription_id>]`, used to stop previous subscriptions. 105 * `["CLOSE", <subscription_id>]`, used to stop previous subscriptions.
106 106
107`<subscription_id>` is an arbitrary, non-empty string of max length 64 chars, that should be used to represent a subscription. Relays should manage `<subscription_id>`s independently for each WebSocket connection; even if `<subscription_id>`s are the same string, they should be treated as different subscriptions for different connections. 107`<subscription_id>` is an arbitrary, non-empty string of max length 64 chars, that should be used to represent a subscription. Relays should manage `<subscription_id>`s independently for each WebSocket connection; even if `<subscription_id>`s are the same string, they should be treated as different subscriptions for different connections.