Skip to content

Commit

Permalink
change "<id>" to "<subscription_id>" in NIP-01
Browse files Browse the repository at this point in the history
fixes #66
  • Loading branch information
fiatjaf committed Jan 30, 2022
1 parent bf8bf03 commit 59352e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nips/01.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 59352e4

Please sign in to comment.