From eb936649684343b509c55ee0c39c1a3faea9506c Mon Sep 17 00:00:00 2001 From: greenart7c3 Date: Sun, 5 Jan 2025 14:43:44 -0300 Subject: [PATCH] Add getRelay --- .../main/java/com/vitorpamplona/ammolite/relays/NostrClient.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ammolite/src/main/java/com/vitorpamplona/ammolite/relays/NostrClient.kt b/ammolite/src/main/java/com/vitorpamplona/ammolite/relays/NostrClient.kt index 311d87b4b..24197edf9 100644 --- a/ammolite/src/main/java/com/vitorpamplona/ammolite/relays/NostrClient.kt +++ b/ammolite/src/main/java/com/vitorpamplona/ammolite/relays/NostrClient.kt @@ -49,6 +49,8 @@ class NostrClient( fun buildRelay(it: RelaySetupInfoToConnect): Relay = Relay(it.url, it.read, it.write, it.forceProxy, it.feedTypes, websocketBuilder, subscriptions) + fun getRelay(url: String): Relay? = relayPool.getRelay(url) + @Synchronized fun reconnect( relays: Array?,