mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 08:47:23 +00:00
Replace damus relay examples in skill docs
relay.damus.io is shutting down; the nostr-relay-pools and relay-management skills still used it as an illustrative URL, which would teach a dead relay to anything generating code from them. Use relay.ditto.pub instead. The relay group example already listed nos.lol, so ditto avoids duplicating an entry there.
This commit is contained in:
1 parent
ac7a6d9435
commit
b5da5127da
2 files changed
+3
-3
No files matched your search
@@ -18,7 +18,7 @@ function useSpecificRelay() {
|
|||||||
const { nostr } = useNostr();
|
const { nostr } = useNostr();
|
||||||
|
|
||||||
// Connect to a specific relay
|
// Connect to a specific relay
|
||||||
const relay = nostr.relay('wss://relay.damus.io');
|
const relay = nostr.relay('wss://relay.ditto.pub');
|
||||||
|
|
||||||
// Query from this relay only
|
// Query from this relay only
|
||||||
const events = await relay.query([{ kinds: [1], limit: 15 }]);
|
const events = await relay.query([{ kinds: [1], limit: 15 }]);
|
||||||
@@ -45,7 +45,7 @@ function useRelayGroup() {
|
|||||||
|
|
||||||
// Create a group of specific relays
|
// Create a group of specific relays
|
||||||
const relayGroup = nostr.group([
|
const relayGroup = nostr.group([
|
||||||
'wss://relay.damus.io',
|
'wss://relay.ditto.pub',
|
||||||
'wss://relay.primal.net',
|
'wss://relay.primal.net',
|
||||||
'wss://nos.lol',
|
'wss://nos.lol',
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ The component takes no props. It reads from and writes to `AppContext` directly,
|
|||||||
NIP-65 defines kind 10002 ("Relay List Metadata") as a replaceable event containing `r` tags for each relay, optionally annotated with `read` / `write` markers:
|
NIP-65 defines kind 10002 ("Relay List Metadata") as a replaceable event containing `r` tags for each relay, optionally annotated with `read` / `write` markers:
|
||||||
|
|
||||||
```
|
```
|
||||||
["r", "wss://relay.damus.io"] // both read and write
|
["r", "wss://relay.ditto.pub"] // both read and write
|
||||||
["r", "wss://relay.example.com", "read"] // read-only
|
["r", "wss://relay.example.com", "read"] // read-only
|
||||||
["r", "wss://writer.example.com", "write"] // write-only
|
["r", "wss://writer.example.com", "write"] // write-only
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user