mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-17 21:31:57 +01:00
Merge pull request #1252 from greenart7c3/main
Add some missing functions to NostrClient
This commit is contained in:
commit
879f70fcbb
@ -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>?,
|
||||
@ -228,6 +230,8 @@ class NostrClient(
|
||||
return result
|
||||
}
|
||||
|
||||
fun getAll(): List<Relay> = relayPool.getAll()
|
||||
|
||||
fun sendFilterOnlyIfDisconnected(
|
||||
subscriptionId: String = UUID.randomUUID().toString().substring(0..10),
|
||||
filters: List<TypedFilter> = listOf(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user