Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method(s) to remove listeners #80

Open
bmayen opened this issue May 15, 2017 · 0 comments
Open

Method(s) to remove listeners #80

bmayen opened this issue May 15, 2017 · 0 comments

Comments

@bmayen
Copy link

bmayen commented May 15, 2017

Would be useful to be able to remove listeners after they've been added. For instance, I have a use case where, depending on some UI state, I may or may not want an onMessage listener. I can handle this currently by setting a flag in the onMessage callback in order to ignore the message, but would be nice to be able to remove it altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant