Skip to content

Commit

Permalink
Add getRelay
Browse files Browse the repository at this point in the history
  • Loading branch information
greenart7c3 committed Jan 5, 2025
1 parent 10459b0 commit eb93664
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<RelaySetupInfoToConnect>?,
Expand Down

0 comments on commit eb93664

Please sign in to comment.