Replying to Avatar PABLOF7z

I'm considering adding a "relay-set router" to NDK.

This would give developers the ability of providing certain policies to route both event fetching and publishing to a particular set of relays, overriding the default calculation. It could (or not) include in the information the router receives the selection that NDK has done, including what it wants to do per the outbox model.

I want to use it for an application that I'm making that creates certain kind of special events and with this I could create a router that says:

"whenever you fetch/publish kind XXX, send it to only these relays"

"whenever you fetch/publish kind 0, include PurplePages, otherwise don't include PurplePages"

Does anybody find this interesting or useful?

Avatar
cloud fodder 2y ago

Yes 💯 I would also like to know per event, which relays it came from as well. Many client libraries lump all the events together and you can't tell where they came from... (not sure if ndk already does this I only use it with a single relay at a time so far..)

Reply to this note

Please Login to reply.

Discussion

Avatar
PABLOF7z 2y ago

It does; each event has a relays property added to it

Avatar
cloud fodder 2y ago

awesome!

Thread collapsed
Avatar
rodant 2y ago

Is this a new feature? I'm using ndk 2.1.1 and haven't see this.

Thread collapsed
Thread collapsed