Implement NostrNetworkManager and UserRelayListManager
This commit implements a new layer called NostrNetworkManager, responsible for managing interactions with the Nostr network, and providing a higher level API that is easier and more secure to use for the layer above it. It also integrates it with the rest of the app, by moving RelayPool and PostBox into NostrNetworkManager, along with all their usages. Changelog-Added: Added NIP-65 relay list support Changelog-Changed: Improved robustness of relay list handling Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -20,7 +20,7 @@ final class RequestTests: XCTestCase {
|
||||
func testMakeAuthRequest() {
|
||||
let challenge_string = "8bc847dd-f2f6-4b3a-9c8a-71776ad9b071"
|
||||
let url = RelayURL("wss://example.com")!
|
||||
let relayDescriptor = RelayPool.RelayDescriptor(url: url, info: .rw)
|
||||
let relayDescriptor = RelayPool.RelayDescriptor(url: url, info: .readWrite)
|
||||
let relayConnection = RelayConnection(url: url) { _ in
|
||||
} processEvent: { _ in
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user