diff --git a/docs/MIGRATION.md b/docs/MIGRATION.md index 10a17726..f97bb0f3 100644 --- a/docs/MIGRATION.md +++ b/docs/MIGRATION.md @@ -159,7 +159,7 @@ The public API remains **100% compatible** between 0.4.0 and 0.5.1. All existing ```java // This code works in both 0.4.0 and 0.5.1 Identity identity = Identity.generateRandomIdentity(); -Map relays = Map.of("damus", "wss://relay.398ja.xyz"); +Map relays = Map.of("398ja", "wss://relay.398ja.xyz"); new NIP01(identity) .createTextNoteEvent("Hello nostr") diff --git a/docs/explanation/architecture.md b/docs/explanation/architecture.md index 6af65553..4f2d0086 100644 --- a/docs/explanation/architecture.md +++ b/docs/explanation/architecture.md @@ -334,7 +334,7 @@ protected void validateTags() { **Examples:** ```java // RelayUri - validates WebSocket URIs -RelayUri relay = new RelayUri("wss://relay.damus.io"); +RelayUri relay = new RelayUri("wss://relay.398ja.xyz"); // Throws IllegalArgumentException if not ws:// or wss:// // SubscriptionId - type-safe subscription identifiers @@ -342,8 +342,8 @@ SubscriptionId subId = SubscriptionId.of("my-subscription"); // Throws IllegalArgumentException if blank // Equality based on value, not object identity -RelayUri r1 = new RelayUri("wss://relay.damus.io"); -RelayUri r2 = new RelayUri("wss://relay.damus.io"); +RelayUri r1 = new RelayUri("wss://relay.398ja.xyz"); +RelayUri r2 = new RelayUri("wss://relay.398ja.xyz"); assert r1.equals(r2); // true - same value ``` diff --git a/docs/howto/api-examples.md b/docs/howto/api-examples.md index 6195f6e9..a4d3a22c 100644 --- a/docs/howto/api-examples.md +++ b/docs/howto/api-examples.md @@ -33,7 +33,7 @@ private static final Map RELAYS = Map.of("local", "localhost:555 **For testing**, you can: - Use a local relay (e.g., [nostr-rs-relay](https://github.com/scsibug/nostr-rs-relay)) -- Replace with public relays: `Map.of("damus", "wss://relay.398ja.xyz")` +- Replace with public relays: `Map.of("398ja", "wss://relay.398ja.xyz")` --- @@ -644,7 +644,7 @@ private static final Map RELAYS = // Use public relays private static final Map RELAYS = Map.of( - "damus", "wss://relay.398ja.xyz", + "398ja", "wss://relay.398ja.xyz", "nos", "wss://nos.lol" ); ``` diff --git a/docs/howto/streaming-subscriptions.md b/docs/howto/streaming-subscriptions.md index daf92fd4..4a320451 100644 --- a/docs/howto/streaming-subscriptions.md +++ b/docs/howto/streaming-subscriptions.md @@ -24,7 +24,7 @@ import nostr.base.Kind; import nostr.event.filter.Filters; import nostr.event.filter.KindFilter; -Map relays = Map.of("damus", "wss://relay.398ja.xyz"); +Map relays = Map.of("398ja", "wss://relay.398ja.xyz"); NostrSpringWebSocketClient client = new NostrSpringWebSocketClient().setRelays(relays); diff --git a/docs/howto/use-nostr-java-api.md b/docs/howto/use-nostr-java-api.md index 113fa015..cbf1010b 100644 --- a/docs/howto/use-nostr-java-api.md +++ b/docs/howto/use-nostr-java-api.md @@ -42,7 +42,7 @@ import java.util.Map; public class QuickStart { public static void main(String[] args) { Identity identity = Identity.generateRandomIdentity(); - Map relays = Map.of("damus", "wss://relay.398ja.xyz"); + Map relays = Map.of("398ja", "wss://relay.398ja.xyz"); new NIP01(identity) .createTextNoteEvent("Hello nostr") diff --git a/docs/reference/nostr-java-api.md b/docs/reference/nostr-java-api.md index b4f93b3c..573e37dd 100644 --- a/docs/reference/nostr-java-api.md +++ b/docs/reference/nostr-java-api.md @@ -200,7 +200,7 @@ Base checked exception for utility methods. Identity id = Identity.generateRandomIdentity(); NIP01 nip01 = new NIP01(id).createTextNoteEvent("Hello Nostr"); NostrIF client = NostrSpringWebSocketClient.getInstance(id) - .setRelays(Map.of("damus","wss://relay.398ja.xyz")); + .setRelays(Map.of("398ja","wss://relay.398ja.xyz")); client.sendEvent(nip01.getEvent()); ```