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

client.removeListener #180

Closed
butterscotchstallion opened this issue Jul 27, 2013 · 3 comments
Closed

client.removeListener #180

butterscotchstallion opened this issue Jul 27, 2013 · 3 comments

Comments

@butterscotchstallion
Copy link

Does this exist? It would be very useful for the concept of "unloading" a plugin.

@katanacrimson
Copy link
Contributor

i believe client is, in some manner, an extension of EventEmitter.

http://nodejs.org/api/events.html#events_emitter_removelistener_event_listener

@grafjo
Copy link

grafjo commented Aug 31, 2013

damianb is right - see irc.js source code:

util.inherits(Client, process.EventEmitter);

-> so this issue is a won't fix one

@katanacrimson
Copy link
Contributor

if you design correctly and store your listeners properly, you can just pass the callback again to removeListener and it's unloaded.

or just use eventemitter.once

I suggest closing as well.

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

3 participants