My pagination range is 4 hours, works well for most accounts, but won't work well for accounts with low activity, profile feeds are much higher ranges, I am still looking for a better solution limited base, but I struggled to get the until value.

I use RxJS extensively throughout the codebase, and I have very little use of promises, my subscription approach is all on top of webSocketSubject + multiplex which makes everything easy and almost no imperative code, also very easy to write unit tests, would be happy to talk about it.

Reply to this note

Please Login to reply.

Discussion

Do you think it would be possible to make the timeline loading switch between date based and limit based? I'm not sure if its that big of an issue but if it got 0 events with first 4 weeks it could try once more with a limit

If your using rxjs that much id love to get your thoughts on https://penpenpng.github.io/rx-nostr/ and https://hzrd149.github.io/applesauce/ both of them are built on rxjs and I've been rewriting a lot of noStrudel to use them

Would you be willing to jump on a audio space (nostr nests or hivetalk) and talk more about what your working on? I'd love to pick your brain about rxjs and see if there are a way we could share more code between our clients

If you guys do this. Please please please record 🙏

maybe... I don't really know the best way to record, and if i did I wouldn't want to accidentally start my own podcast

I will try to write something about my thoughts on rx-nostr and applesauce and my approach for subscriptions, but basically my approach is more outbox oriented, and relays are observables which helps discover relays on the fly as the subscription goes, I think I did something really flexible with very little lines of code.

I didn't went deep on applesauce, from my understanding its a lot more than a subscription handler.

I would love to jump on a audio space and share my rxjs journey I been through the past 12 months

rx-nostr treats relays and subscriptions as observables but its also setup to handle reconnecting and resubscribing to relays. either way it sounds a lot like what you've built. and yeah, applesauce is only 20% rxjs the rest is helper methods to parse events

I don't know what timezone your in ( I'm in CST ), but as long as your not on the other side of the world. name a day of the week and we can find a time that works best for both of us

That's great, I am on GMT-3 (BRT), let's try this Wednesday so I can prepare some documents/code with insights

Sounds good, and ill try to look around at nosotros code to get familiar with it