Node.on vs node.addListener

I am new to node-red and I found myself mistakenly using node.off('input', inputHandler) in my current project, only later to realize that it does not remove the listener. Looking at the source code, I see that Node extends EventEmitter and overrides the on and removeListener methods. Is there a reason for not implementing or aliasing off and addListener?

No specific reason - just over looked. We should add those in.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.