mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-13 02:46:24 +00:00
Consistent formatting
This commit is contained in:
parent
de9e41077c
commit
2a2fbc3202
4
59.md
4
59.md
@ -21,11 +21,11 @@ Relay status events have **two** (1) required tags and **eight** (8) optional ta
|
||||
|
||||
The tags should be used to represent the Relay's abilities and meta at a point in time. Below the `tags schema` is expressed using pseudo-types for reasons of communication and brevity, for example `tagDescriptor[]`.
|
||||
|
||||
1. `"d" == tagId[0]` The relay URL (`#d`). The `#d` tag **must** be included in the `event.tags[]` array. `tagId[1]` **must** be the relay websocket URL. The URL **should** be normalized.
|
||||
1. `"d" == tagId[0]` The relay URL. The `#d` tag **must** be included in the `event.tags[]` array. `tagId[1]` **must** be the relay websocket URL. The URL **should** be normalized.
|
||||
```json
|
||||
["d", "wss://history.nostr.watch/"] //tagId[]
|
||||
```
|
||||
2. `"o" == tagOnline[0]` Is the relay online (`#o`). `tagOnline[]` **may** be included in the `event.tags[]` array. `tagOnline[1]` **must** be type string as exactly `true` or `false`
|
||||
2. `"o" == tagOnline[0]` Is the relay online. `tagOnline[]` **may** be included in the `event.tags[]` array. `tagOnline[1]` **must** be type string as exactly `true` or `false`
|
||||
```json
|
||||
["o", "true"] //tagOnline[]
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user