js-waku icon indicating copy to clipboard operation
js-waku copied to clipboard

feat(filter)!: limit filter subscriptions to use a single decoder

Open adklempner opened this issue 3 months ago • 1 comments

This is a bug report/feature request/support request/change request

Problem

The subscribe function for filter accepts either a single decoder or an array of decoders. This leads to a lot of overhead for the library consumer when handling the response: it might fail before even attempting a subscription, all subscriptions requests might fail, some might fail and some succeed, or all succeed. It's cleaner for the function to accept a single decoder and respond with a single failure or success.

Proposed Solutions

Refactor subscribe function in filter to only accept a single decoder

Notes

adklempner avatar Apr 25 '24 17:04 adklempner