You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That fails from time to time with NDKPublishError: Not enough relays received the event.
If I wait for 5 seconds, then it always works:
await ndk.connect(5000);
await new Promise(resolve => setTimeout(resolve, 5000));
const ndkEvent = new NDKEvent(ndk);
ndkEvent.xxx = xxx
await ndkEvent.publish()
I think that's a bug, because the timeout should wait 5 seconds before returning. I see this in ndk's code: If the timeout is reached, the connection will be continued to be established in the background.
The text was updated successfully, but these errors were encountered:
When trying to publish events, I try doing this:
That fails from time to time with
NDKPublishError: Not enough relays received the event
.If I wait for 5 seconds, then it always works:
I think that's a bug, because the timeout should wait 5 seconds before returning. I see this in ndk's code:
If the timeout is reached, the connection will be continued to be established in the background.
The text was updated successfully, but these errors were encountered: