Anyone have advice on establishing relay connections using python-nostr?

I’ve got #[0] running with basic functionality, but I don’t think it’s publishing to every relay in the script.

I get a WebSocketConnectionClosedExcption: Connection is already closed error. Not sure if that’s because the relays are rejecting my connection or if the connection times out before the publish() executes.

Reply to this note

Please Login to reply.

Discussion

oooh nice, thank you! Is this your repo?

It looks like this is geared toward watching for events, which I don’t really need to do. I’m trying to just have a Cron job that publishes kind 1 events, but am having trouble establishing (or maintaining?) relay connections. Is it aionostr that is being used to do this here?

Ok, yes. aionostr can do that. It should automatically reconnect to relays.

Let me know if you need help.