This is a continuation of Are there any more events than "input" and "close"?
In the whole thread, there are many mentions saying "the doc is complete". However, there is no link to this exactly page where it says all possible events. So, please, can you share the link? I could not. I'm not sure if "input" and "close" are still the only ones.
Moreover, this is a feedback as a developer. I spent quite some time reading the docs and could not find this page. I also could not find it indexed in google, event searching a simple query like node-red event handlers
.
The docs for the server side of a node are here: JavaScript file : Node-RED
Thanks! I read that page. However, I was still not 100% sure if input
and close
were really the only events available. I questioned it because of the way event handlers are registered. To register an event handler, we have to use this.on(EVENT_NAME, HANDLER)
, and because the first parameter is a string, it made me believe I could register other events that are not listed, and then trigger those handlers somehow. It would be nice to make it clear that we can't use other strings other than "input" and "close" with this.on
.
So, even if I'm able to call this.on("BANANA", onBananaHandler(){})
it means I won't ever be able to trigger onBananaHandler
right?
… only if also you edit/hack the core of Node-RED to emit the BANANA event at some point
1 Like