upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2023-04-09 08:50:24 -0300
committerfiatjaf <fiatjaf@gmail.com>2023-04-09 08:50:24 -0300
commitfb5b7c739ff92cec4962990aa99c54fac9f5de81 (patch)
treee20260d2ed02c68cb9741577b424fc573f474592
parentdee546ed9ead06135522307c7effafb8e7095afd (diff)
merge NIP-15 into NIP-01.
-rw-r--r--01.md5
-rw-r--r--15.md21
-rw-r--r--README.md3
3 files changed, 4 insertions, 25 deletions
diff --git a/01.md b/01.md
index 4cfdd35..8efb8ec 100644
--- a/01.md
+++ b/01.md
@@ -4,7 +4,7 @@ NIP-01
4Basic protocol flow description 4Basic protocol flow description
5------------------------------- 5-------------------------------
6 6
7`draft` `mandatory` `author:fiatjaf` `author:distbit` `author:scsibug` `author:kukks` `author:jb55` 7`draft` `mandatory` `author:fiatjaf` `author:distbit` `author:scsibug` `author:kukks` `author:jb55` `author:semisol`
8 8
9This NIP defines the basic protocol that should be implemented by everybody. New NIPs may add new optional (or mandatory) fields and messages and features to the structures and flows described here. 9This NIP defines the basic protocol that should be implemented by everybody. New NIPs may add new optional (or mandatory) fields and messages and features to the structures and flows described here.
10 10
@@ -89,7 +89,8 @@ The `limit` property of a filter is only valid for the initial query and can be
89Relays can send 2 types of messages, which must also be JSON arrays, according to the following patterns: 89Relays can send 2 types of messages, which must also be JSON arrays, according to the following patterns:
90 90
91 * `["EVENT", <subscription_id>, <event JSON as defined above>]`, used to send events requested by clients. 91 * `["EVENT", <subscription_id>, <event JSON as defined above>]`, used to send events requested by clients.
92 * `["NOTICE", <message>]`, used to send human-readable error messages or other things to clients. 92 * `["EOSE", <subscription_id>]`, used to indicate the _end of stored events_ and the beginning of events newly received in real-time.
93 * `["NOTICE", <message>]`, used to send human-readable error messages or other things to clients.
93 94
94This NIP defines no rules for how `NOTICE` messages should be sent or treated. 95This NIP defines no rules for how `NOTICE` messages should be sent or treated.
95 96
diff --git a/15.md b/15.md
deleted file mode 100644
index 081a97d..0000000
--- a/15.md
+++ /dev/null
@@ -1,21 +0,0 @@
1NIP-15
2======
3
4End of Stored Events Notice
5---------------------------
6
7`final` `optional` `author:Semisol`
8
9Relays may support notifying clients when all stored events have been sent.
10
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 it indicates all the events that come after this message are newly published.
12
13Client Behavior
14---------------
15
16Clients SHOULD use the `supported_nips` field to learn if a relay supports end of stored events notices.
17
18Motivation
19----------
20
21The motivation for this proposal is to reduce uncertainty when all events have been sent by a relay to make client code possibly less complex.
diff --git a/README.md b/README.md
index 215e5cd..ec55ab7 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,6 @@ NIPs stand for **Nostr Implementation Possibilities**. They exist to document wh
16- [NIP-12: Generic Tag Queries](12.md) 16- [NIP-12: Generic Tag Queries](12.md)
17- [NIP-13: Proof of Work](13.md) 17- [NIP-13: Proof of Work](13.md)
18- [NIP-14: Subject tag in text events.](14.md) 18- [NIP-14: Subject tag in text events.](14.md)
19- [NIP-15: End of Stored Events Notice](15.md)
20- [NIP-16: Event Treatment](16.md) 19- [NIP-16: Event Treatment](16.md)
21- [NIP-18: Reposts](18.md) 20- [NIP-18: Reposts](18.md)
22- [NIP-19: bech32-encoded entities](19.md) 21- [NIP-19: bech32-encoded entities](19.md)
@@ -96,7 +95,7 @@ NIPs stand for **Nostr Implementation Possibilities**. They exist to document wh
96|--------|---------------------------------------------------------|-------------| 95|--------|---------------------------------------------------------|-------------|
97| EVENT | used to send events requested to clients | [1](01.md) | 96| EVENT | used to send events requested to clients | [1](01.md) |
98| NOTICE | used to send human-readable messages to clients | [1](01.md) | 97| NOTICE | used to send human-readable messages to clients | [1](01.md) |
99| EOSE | used to notify clients all stored events have been sent | [15](15.md) | 98| EOSE | used to notify clients all stored events have been sent | [1](01.md) |
100| OK | used to notify clients if an EVENT was successful | [20](20.md) | 99| OK | used to notify clients if an EVENT was successful | [20](20.md) |
101| AUTH | used to send authentication challenges | [42](42.md) | 100| AUTH | used to send authentication challenges | [42](42.md) |
102| COUNT | used to send requested event counts to clients | [45](45.md) | 101| COUNT | used to send requested event counts to clients | [45](45.md) |