diff options
Diffstat (limited to '23.md')
| -rw-r--r-- | 23.md | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -16,7 +16,9 @@ The _read_ condition consists of a string containing a rule that follows a subse | |||
| 16 | 16 | ||
| 17 | The `read` rule operates on the values of the [NIP-01](01.md) **filter** object, while the `write` rule operates on the values of the **event** object. | 17 | The `read` rule operates on the values of the [NIP-01](01.md) **filter** object, while the `write` rule operates on the values of the **event** object. |
| 18 | 18 | ||
| 19 | When a `read` rule evaluates to `true` for a given **filter** the client SHOULD send a `REQ` message to the relay, otherwise it SHOULD NOT. When a `write` rule evaluates to `true` for a given **event** the client SHOULD send that event (in a `EVENT` message) to the relay, otherwise it MUST NOT. | 19 | When a `read` rule evaluates to `false` for a given **filter** the client SHOULD NOT send that filter in a `REQ` message to that relay. |
| 20 | |||
| 21 | When a `write` rule evaluates to `false` for a given **event** the client SHOULD NOT send that event in an `EVENT` message to that relay. | ||
| 20 | 22 | ||
| 21 | When a rule is malformed or the client is unable to parse it for any reason (for example, for not having implemented all the operators) it SHOULD treat it as `true` if it is a _read_ rule and `false` if it is a _write_ rule. | 23 | When a rule is malformed or the client is unable to parse it for any reason (for example, for not having implemented all the operators) it SHOULD treat it as `true` if it is a _read_ rule and `false` if it is a _write_ rule. |
| 22 | 24 | ||