add NOTICE optional subscription_id

This commit is contained in:
pablof7z 2023-03-16 15:49:14 +01:00 committed by fiatjaf_
parent 4bb393735e
commit 88009bea85

2
01.md
View File

@ -89,7 +89,7 @@ The `limit` property of a filter is only valid for the initial query and can be
Relays can send 2 types of messages, which must also be JSON arrays, according to the following patterns:
* `["EVENT", <subscription_id>, <event JSON as defined above>]`, used to send events requested by clients.
* `["NOTICE", <message>]`, used to send human-readable error messages or other things to clients.
* `["NOTICE", <message>, <subscription_id>]`, used to send human-readable error messages or other things to clients. Relays might optionally send a `subscription_id` this notice was caused by.
This NIP defines no rules for how `NOTICE` messages should be sent or treated.