mirror of
https://github.com/nostr-protocol/nips.git
synced 2026-07-22 07:48:25 +00:00
One sentence in NIP-01 that helps resolves a huge issue with relay connection management. (#2307)
Co-authored-by: sandwich <dskvr@users.noreply.github.com>
This commit is contained in:
2
01.md
2
01.md
@@ -108,6 +108,8 @@ These are just conventions and relay implementations may differ.
|
||||
|
||||
Relays expose a websocket endpoint to which clients can connect. Clients SHOULD open a single websocket connection to each relay and use it for all their subscriptions. Relays MAY limit number of connections from specific IP/client/etc.
|
||||
|
||||
Relays MUST only accept connections to a single endpoint when additional path segments do not influence its behavior.
|
||||
|
||||
### From client to relay: sending events and creating subscriptions
|
||||
|
||||
Clients can send 3 types of messages, which must be JSON arrays, according to the following patterns:
|
||||
|
||||
Reference in New Issue
Block a user