message queues

This commit is contained in:
callebtc
2023-02-07 23:05:32 +01:00
parent 8e39666fe2
commit 1812b0128f
4 changed files with 24 additions and 8 deletions

View File

@@ -21,10 +21,9 @@ from . import cbc
class NostrClient:
relays = [
# "wss://lnbits.link/nostrrelay/client"
"wss://nostr-pub.wellorder.net",
# "wss://nostr.zebedee.cloud",
# "wss://no.str.cr",
"wss://lnbits.link/nostrrelay/client" "wss://nostr-pub.wellorder.net",
"wss://nostr.zebedee.cloud",
"wss://no.str.cr",
] # ["wss://nostr.oxtr.dev"] # ["wss://relay.nostr.info"] "wss://nostr-pub.wellorder.net" "ws://91.237.88.218:2700", "wss://nostrrr.bublina.eu.org", ""wss://nostr-relay.freeberty.net"", , "wss://nostr.oxtr.dev", "wss://relay.nostr.info", "wss://nostr-pub.wellorder.net" , "wss://relayer.fiatjaf.com", "wss://nodestr.fmt.wiz.biz/", "wss://no.str.cr"
relay_manager = RelayManager()
private_key: PrivateKey
@@ -44,6 +43,7 @@ class NostrClient:
self.relay_manager.open_connections(
{"cert_reqs": ssl.CERT_NONE}
) # NOTE: This disables ssl certificate verification
self.relay_manager.start_message_workers()
def close(self):
self.relay_manager.close_connections()