nodejsinaction
nodejsinaction copied to clipboard
Fixes #1, wrong context inside arrow functions.
Fixes #1.
According to https://nodejs.org/api/all.html#events_passing_arguments_and_this_to_listeners,
this keyword no longer references the EventEmitter instance. Now channel is used directly.
Thanks @artemruts . I was exactly encountering the issue #1 and your code did the fix