mirror of
https://github.com/aljazceru/python-nostr.git
synced 2025-12-19 07:14:23 +01:00
message queues
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user