upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemisol <45574030+Semisol@users.noreply.github.com>2022-05-27 17:54:38 +0300
committerSemisol <hi@semisol.dev>2022-05-27 17:55:01 +0300
commitf49f26fbe23372feb1e45d425d0f605e29d79809 (patch)
treed301b9f8e12670aa02bc8738974772d55d619a43
parent3374869b3f447066ce8fae138be347788c8d8946 (diff)
nip15: EOSE message will be sent always
-rw-r--r--15.md17
1 files changed, 2 insertions, 15 deletions
diff --git a/15.md b/15.md
index 3ae1ef7..c2a55b7 100644
--- a/15.md
+++ b/15.md
@@ -8,25 +8,12 @@ End of Stored Events Notice
8 8
9Relays may support notifying clients when all stored events have been sent. 9Relays may support notifying clients when all stored events have been sent.
10 10
11If a client sets `eose_notice` field to `true` in any of the filters in a `REQ` message and the relay supports this NIP, the relay MUST send the client a `EOSE` message in the format `["EOSE", <subscription_id>]` which indicates that all stored events matching the filters specified have been sent and all events from on are newly published events. 11If a relay supports this NIP, the relay SHOULD send the client a `EOSE` message in the format `["EOSE", <subscription_id>]` after it has sent all the events it has persisted and all the events that come after this message are newly published.
12
13Example Subscription Filter
14---------------------------
15
16The following provides an example of a filter that requests the `set_metadata` (`0`) event(s) of a pubkey and requests the server to send an end of stored events message.
17
18```
19{
20 "kinds": [0],
21 "authors": ["52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd"],
22 "eose_notice": true
23}
24```
25 12
26Client Behavior 13Client Behavior
27--------------- 14---------------
28 15
29Clients SHOULD use the `supported_nips` field to learn if a relay supports end of stored events notices. Clients MAY send filters with `eose_notice` to any relay, if they are prepared to not receive a message from relays that do not support this NIP. 16Clients SHOULD use the `supported_nips` field to learn if a relay supports end of stored events notices.
30 17
31Motivation 18Motivation
32---------- 19----------