adamritter / nostr-relaypool-ts

A Nostr RelayPool implementation in TypeScript using only nostr-tools library as a dependency
https://www.npmjs.com/package/nostr-relaypool
MIT License
63 stars 17 forks source link

Add reducer for batching filters with limit #31

Open adamritter opened 1 year ago

adamritter commented 1 year ago

Multiple filters with the same limit are batched into a common filter.

There should be a way to specify what should be the limit of the common merged filter.

Filters should probably matched by creating an additional originalFilterCount property and using that when sending a subscription.

Also merging limits may be needed to be turned off