What is Nostr?
Yuki Kishimoto
npub1drv…seet
2024-04-17 07:45:44
in reply to nevent1q…jetn

Yuki Kishimoto on Nostr: When you call the 'notifications' method, you subscribe to the notification channel ...

When you call the 'notifications' method, you subscribe to the notification channel from that precise moment. Anything sent before that moment is not included in the channel.

In the code you were subscribing to the relays very early and then you were sending the metadata event (if one of the relays is offline it may take some seconds to continue). Therefore, when the `notifications` method was finally called, it's likely that the events had already been received (but not included in the notification channel).

---

I'll update the documentation of the "notifications" method.
Author Public Key
npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet