This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
adding unsubscribe(eventName) #436
Closed
Description
Hi, currently unsubscribe
method must take a reference to the handler
and it forces me to keep a reference to it while it may not be ideal for some implementations.
Maybe unsubscribe(eventName)
could be provided based on EventEmitter.removeAllListeners(eventName) and how floodsub
is implemented (inherits EventEmitter).
I don't mind creating PR for this, just wonder if there's an issue with that first,