Add getRelay

This commit is contained in:
greenart7c3 2025-01-05 14:43:44 -03:00
parent 10459b0a7a
commit eb93664968
No known key found for this signature in database
GPG Key ID: 885822EED3A26A6D

View File

@ -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>?,