diff --git a/01.md b/01.md index c3fce4c..7b81a10 100644 --- a/01.md +++ b/01.md @@ -46,7 +46,7 @@ To obtain the hash `.id`, we `sha256` the UTF-8 byte array of a JSON-serialized ] ``` -The JSON serialization MUST follow this rules: +The JSON serialization MUST follow these rules: - Minified: No whitespace, line breaks, or other unnecessary formatting used - Escape Set: ONLY the following characters MUST be escaped: - line break: `0x0A` to `\n` @@ -162,7 +162,7 @@ Relays send 3 types of messages during a subscription: * `["EOSE", ]`, used to indicate the _end of stored events_ and the beginning of events newly received in real-time. * `["CLOSED", , ]`, used to indicate that a subscription was ended on the server side. -All messages MUST be sent with the subscription_id initiated by the client (using the `REQ` message above). +All messages MUST be sent with the `subscription_id` initiated by the client (using the `REQ` message above). `CLOSED` messages MUST be sent in response to a `REQ` when the relay refuses to fulfill it. It can also be sent when a relay decides to kill a subscription on its side before a client has disconnected or sent a `CLOSE`. The message MUST be a string formed by a machine-readable single-word prefix followed by a `:` and then a human-readable message.