diff options
| author | Ricardo Arturo Cabral Mejía <me@ricardocabral.io> | 2022-08-16 23:15:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-16 23:15:17 -0400 |
| commit | 072783319dd969efe5c5d47a44a499ec66afd449 (patch) | |
| tree | ade41d42ed44c9736c2d4551423dde55d372c3ea /27.md | |
| parent | 1228533c24b02595a77d84cf66151ce52eafd4ba (diff) | |
chore: minor fixes
Diffstat (limited to '27.md')
| -rw-r--r-- | 27.md | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -18,7 +18,8 @@ of an `m` tag is case-sensitive. | |||
| 18 | A client SHOULD send events containing `m` tags only to relays that explicitly | 18 | A client SHOULD send events containing `m` tags only to relays that explicitly |
| 19 | support NIP-27. A NIP-16 supporting client MAY test for the capability by | 19 | support NIP-27. A NIP-16 supporting client MAY test for the capability by |
| 20 | subscribing twice to a relay with and without the tag filter `#m` respectively | 20 | subscribing twice to a relay with and without the tag filter `#m` respectively |
| 21 | and sending an ephemeral event with a random `m` tag of equal value. | 21 | and sending an ephemeral event with a random `m` tag of equal value and assert |
| 22 | it was only received by the right subscription. | ||
| 22 | 23 | ||
| 23 | ## Events | 24 | ## Events |
| 24 | 25 | ||
| @@ -29,7 +30,7 @@ Suppose that Alice wants to multicast an event to a very special multicast group | |||
| 29 | that covers specific topics. The multicast group is identified by the following | 30 | that covers specific topics. The multicast group is identified by the following |
| 30 | string: `00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048` | 31 | string: `00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048` |
| 31 | 32 | ||
| 32 | Alice would construct the following message and sends it to her favorite relay | 33 | Alice would construct the following message and send it to her favorite relay |
| 33 | which happens to support multicasting: | 34 | which happens to support multicasting: |
| 34 | 35 | ||
| 35 | ```json | 36 | ```json |
| @@ -56,7 +57,7 @@ an array of multicast groups as values. | |||
| 56 | Suppose that Bob and Charlie both share Alice's interest and would like to stay | 57 | Suppose that Bob and Charlie both share Alice's interest and would like to stay |
| 57 | up to date. Both would construct the following message to subscribe: | 58 | up to date. Both would construct the following message to subscribe: |
| 58 | 59 | ||
| 59 | ``` | 60 | ```json |
| 60 | [ | 61 | [ |
| 61 | "REQ", | 62 | "REQ", |
| 62 | "<subscriptionId>", | 63 | "<subscriptionId>", |