Skip to content

Conversation

AsaiToshiya
Copy link
Collaborator

I don't know why, but there are relays (e.g wss://relay.nostr.bg) that does not send an OK message in response to an EVENT message. In that case we wait forever for it and the promise returned by publish() is never resolve/reject.

This PR adds a timeout and solves that problem.

@fiatjaf fiatjaf merged commit d062ab8 into nbd-wtf:master Oct 30, 2024
0 of 2 checks passed
@AsaiToshiya AsaiToshiya deleted the publish-timeout branch October 31, 2024 12:47
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

Successfully merging this pull request may close these issues.

2 participants