Skip to content
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
@Isan-Rivkin

Description

@Isan-Rivkin

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,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions