change "<id>" to "<subscription_id>" in NIP-01

fixes https://github.com/fiatjaf/nostr/issues/66
pull/67/head
fiatjaf 2022-01-30 08:20:06 -03:00
rodzic bf8bf03033
commit 59352e4864
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -52,8 +52,8 @@ Relays expose a websocket endpoint to which clients can connect.
Clients can send 3 types of messages, which must be JSON arrays, according to the following patterns:
* `["EVENT", <event JSON as defined above>`], used to publish events.
* `["REQ", <id>, <filter JSON>...`], used to request events and subscribe to new updates.
* `["CLOSE", <id>]`, used to stop previous subscriptions.
* `["REQ", <subscription_id>, <filter JSON>...`], used to request events and subscribe to new updates.
* `["CLOSE", <subscription_id>]`, used to stop previous subscriptions.
`<id>` is a random string that should be used to represent a subscription. The same