js-waku
js-waku copied to clipboard
chore: Filter and Relay should be compliant with `IReceiver`
With work on #1682, we are changing the Filter API -- this also impacts the IRelay
API as both of these protocol implementations are expected to be compliant with our IReceiver
interface.
In the interest of keeping the PR straightforward, only Filter refactor is addressed with #1682.
This issue aims to track the work around Relay, and necessary updates to the IReceiver
API.
This was discussed in the PM meeting (https://github.com/waku-org/js-waku/issues/1683#issuecomment-1799056053).
Acceptance Criteria:
- [ ] update
Relay
protocol, in a similar structure as Filter - [ ] emsure
Filter
andRelay
are compliance withIReceiver
(updateIReceiver
accordingly) - [ ] update & ensure these protocol implementations work with
toAsyncIterator
- [ ] un-skip the
Util: toAsyncIterator: Filter
test
- [ ] un-skip the
Depends on #1683