franzaps / zapthreads

The Unlicense
33 stars 8 forks source link

Pass each relay's latest as its since #51

Open alopatindev opened 3 months ago

alopatindev commented 3 months ago

This updates nostr-tools because there's no subscribeManyMap in the older version.

trackRelays should've been enabled, otherwise seenOn is empty.

I would actually personally prefer to pass not the since itself but something like since - tenMins (or even since - hour), just to make sure we don't miss some "delayed" event sent from machine with poor time synchronization (or even perfect synchronization, but sent over a poor network just a second before the last event; or even broadcasted from some other relay using some cron script, etc.).

franzaps commented 3 months ago

Thanks. Are you using zapthreads for anything in particular or just want to improve it?

alopatindev commented 3 months ago

I'm about to integrate it to my website as soon as I'll finish some features. Basically I want to make it a bit faster and add some filtering.

franzaps commented 3 months ago

That's cool, share your site if you want

alopatindev commented 3 months ago

Sure, here it is, zapthreads is not integrated though yet

https://codonaft.com

alopatindev commented 2 months ago

Ok, finally running it 🚀

Here's how it looks like and what features are available now: https://github.com/codonaft/zapthreads-codonaft#readme