upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoji Shidara <dara@shidara.net>2023-07-13 14:14:36 +0900
committerfiatjaf_ <fiatjaf@gmail.com>2023-07-13 07:08:26 -0300
commit0b08cf545b50b4799000e90aa4c5ada2cb73ca62 (patch)
treef52ae2d7276f5b377dc8b7b015b8c2fc67b3746a
parent1889ac792b7119ba9dc41fd4e904445ad1d9c6b5 (diff)
Explicitly state that the `subscription_id` is treated per connection
-rw-r--r--01.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/01.md b/01.md
index 4c2ccd9..8b1471d 100644
--- a/01.md
+++ b/01.md
@@ -55,7 +55,7 @@ Clients can send 3 types of messages, which must be JSON arrays, according to th
55 * `["REQ", <subscription_id>, <filters JSON>...]`, used to request events and subscribe to new updates. 55 * `["REQ", <subscription_id>, <filters JSON>...]`, used to request events and subscribe to new updates.
56 * `["CLOSE", <subscription_id>]`, used to stop previous subscriptions. 56 * `["CLOSE", <subscription_id>]`, used to stop previous subscriptions.
57 57
58`<subscription_id>` is an arbitrary, non-empty string of max length 64 chars, that should be used to represent a subscription. 58`<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 `<subscrption_id>`s are the same string, they should be treated as different subscriptions for different connections.
59 59
60`<filters>` is a JSON object that determines what events will be sent in that subscription, it can have the following attributes: 60`<filters>` is a JSON object that determines what events will be sent in that subscription, it can have the following attributes:
61 61