Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disconnect timeout option for default and non-default relays #164

Closed
hzrd149 opened this issue Jan 13, 2025 · 1 comment
Closed

Disconnect timeout option for default and non-default relays #164

hzrd149 opened this issue Jan 13, 2025 · 1 comment

Comments

@hzrd149
Copy link
Contributor

hzrd149 commented Jan 13, 2025

Is there an option to set a timeout for how long rx-nostr will keep a relay connection open after its no longer needed?

I've started using rx-nostr in my client to fetch events and users profiles. this usually involves connecting to random one-off relays and I would like it to not imminently close the connection after it gets an EOSE because usually there is another REQ I need to make to the same relay a few seconds later

This would also be good to have for any relays I've authenticated to. since the client has gone through the trouble of authenticating it doesn't make sense to close the connection for a while

I've set the connectionStrategy to lazy-keep but this only seems to effect default relays

@penpenpng
Copy link
Owner

resolved in #165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants