diff options
Diffstat (limited to '01.md')
| -rw-r--r-- | 01.md | 4 |
1 files changed, 0 insertions, 4 deletions
| @@ -96,10 +96,6 @@ These are just conventions and relay implementations may differ. | |||
| 96 | 96 | ||
| 97 | 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. | 97 | 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. |
| 98 | 98 | ||
| 99 | ### Meaning of WebSocket status codes | ||
| 100 | |||
| 101 | - When a websocket is closed by the relay with a status code `4000` that means the client shouldn't try to connect again. | ||
| 102 | |||
| 103 | ### From client to relay: sending events and creating subscriptions | 99 | ### From client to relay: sending events and creating subscriptions |
| 104 | 100 | ||
| 105 | Clients can send 3 types of messages, which must be JSON arrays, according to the following patterns: | 101 | Clients can send 3 types of messages, which must be JSON arrays, according to the following patterns: |