From d30f03316f0b3ab56faba94b0abfcb9041b81764 Mon Sep 17 00:00:00 2001 From: Josua Schmid Date: Fri, 22 Dec 2023 14:54:17 +0100 Subject: [PATCH] Emphasis on multiple filters in NIP-01 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As mentioned further down in NIP-01 > A REQ message may contain multiple filters. The comma makes it more clear that the message array can container more than 3 items. So it is understood easily to match ``` // correct: ["REQ", , filters1, filters2, …] ``` instead of ``` // wrong: ["REQ", , [filters1, filters2, …]] ``` --- 01.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 Clients can send 3 types of messages, which must be JSON arrays, according to the following patterns: * `["EVENT", ]`, used to publish events. - * `["REQ", , ...]`, used to request events and subscribe to new updates. + * `["REQ", , , ...]`, used to request events and subscribe to new updates. * `["CLOSE", ]`, used to stop previous subscriptions. `` is an arbitrary, non-empty string of max length 64 chars, that should be used to represent a subscription. Relays should manage ``s independently for each WebSocket connection; even if ``s are the same string, they should be treated as different subscriptions for different connections.