mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
nip15: EOSE message will be sent always
This commit is contained in:
parent
3374869b3f
commit
f49f26fbe2
17
15.md
17
15.md
|
@ -8,25 +8,12 @@ End of Stored Events Notice
|
||||||
|
|
||||||
Relays may support notifying clients when all stored events have been sent.
|
Relays may support notifying clients when all stored events have been sent.
|
||||||
|
|
||||||
If 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.
|
If 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.
|
||||||
|
|
||||||
Example Subscription Filter
|
|
||||||
---------------------------
|
|
||||||
|
|
||||||
The 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.
|
|
||||||
|
|
||||||
```
|
|
||||||
{
|
|
||||||
"kinds": [0],
|
|
||||||
"authors": ["52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd"],
|
|
||||||
"eose_notice": true
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Client Behavior
|
Client Behavior
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
Clients 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.
|
Clients SHOULD use the `supported_nips` field to learn if a relay supports end of stored events notices.
|
||||||
|
|
||||||
Motivation
|
Motivation
|
||||||
----------
|
----------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user