Skip to content

Commit 2d3cbd4

Browse files
committed
docs: rename relay references to 398ja
1 parent 8d04481 commit 2d3cbd4

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

docs/MIGRATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ The public API remains **100% compatible** between 0.4.0 and 0.5.1. All existing
159159
```java
160160
// This code works in both 0.4.0 and 0.5.1
161161
Identity identity = Identity.generateRandomIdentity();
162-
Map<String, String> relays = Map.of("damus", "wss://relay.398ja.xyz");
162+
Map<String, String> relays = Map.of("398ja", "wss://relay.398ja.xyz");
163163

164164
new NIP01(identity)
165165
.createTextNoteEvent("Hello nostr")

docs/explanation/architecture.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,16 +334,16 @@ protected void validateTags() {
334334
**Examples:**
335335
```java
336336
// RelayUri - validates WebSocket URIs
337-
RelayUri relay = new RelayUri("wss://relay.damus.io");
337+
RelayUri relay = new RelayUri("wss://relay.398ja.xyz");
338338
// Throws IllegalArgumentException if not ws:// or wss://
339339

340340
// SubscriptionId - type-safe subscription identifiers
341341
SubscriptionId subId = SubscriptionId.of("my-subscription");
342342
// Throws IllegalArgumentException if blank
343343

344344
// Equality based on value, not object identity
345-
RelayUri r1 = new RelayUri("wss://relay.damus.io");
346-
RelayUri r2 = new RelayUri("wss://relay.damus.io");
345+
RelayUri r1 = new RelayUri("wss://relay.398ja.xyz");
346+
RelayUri r2 = new RelayUri("wss://relay.398ja.xyz");
347347
assert r1.equals(r2); // true - same value
348348
```
349349

docs/howto/api-examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private static final Map<String, String> RELAYS = Map.of("local", "localhost:555
3333

3434
**For testing**, you can:
3535
- Use a local relay (e.g., [nostr-rs-relay](https://github.com/scsibug/nostr-rs-relay))
36-
- Replace with public relays: `Map.of("damus", "wss://relay.398ja.xyz")`
36+
- Replace with public relays: `Map.of("398ja", "wss://relay.398ja.xyz")`
3737

3838
---
3939

@@ -644,7 +644,7 @@ private static final Map<String, String> RELAYS =
644644

645645
// Use public relays
646646
private static final Map<String, String> RELAYS = Map.of(
647-
"damus", "wss://relay.398ja.xyz",
647+
"398ja", "wss://relay.398ja.xyz",
648648
"nos", "wss://nos.lol"
649649
);
650650
```

docs/howto/streaming-subscriptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import nostr.base.Kind;
2424
import nostr.event.filter.Filters;
2525
import nostr.event.filter.KindFilter;
2626

27-
Map<String, String> relays = Map.of("damus", "wss://relay.398ja.xyz");
27+
Map<String, String> relays = Map.of("398ja", "wss://relay.398ja.xyz");
2828

2929
NostrSpringWebSocketClient client = new NostrSpringWebSocketClient().setRelays(relays);
3030

docs/howto/use-nostr-java-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import java.util.Map;
4242
public class QuickStart {
4343
public static void main(String[] args) {
4444
Identity identity = Identity.generateRandomIdentity();
45-
Map<String, String> relays = Map.of("damus", "wss://relay.398ja.xyz");
45+
Map<String, String> relays = Map.of("398ja", "wss://relay.398ja.xyz");
4646

4747
new NIP01(identity)
4848
.createTextNoteEvent("Hello nostr")

docs/reference/nostr-java-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Base checked exception for utility methods.
200200
Identity id = Identity.generateRandomIdentity();
201201
NIP01 nip01 = new NIP01(id).createTextNoteEvent("Hello Nostr");
202202
NostrIF client = NostrSpringWebSocketClient.getInstance(id)
203-
.setRelays(Map.of("damus","wss://relay.398ja.xyz"));
203+
.setRelays(Map.of("398ja","wss://relay.398ja.xyz"));
204204
client.sendEvent(nip01.getEvent());
205205
```
206206

0 commit comments

Comments
 (0)