You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By following the documentation and registering a handler for a given event (https://nodered.org/docs/api/ui/events/), and after double checking that the event listener is added to the list of events in node-red (I am actually able to emit it manually by myself). I see that none of the events that I have registered listeners for get emitted by the node-red runtime.
Expected Behavior
Events to be emitted and the event handlers I have registered to be triggered.
Steps To Reproduce
Follow the documentation and setup any of the events (e.g. deploy)
Trigger the flow deploy event by using the node-red UI
Example flow
paste your flow here
Environment
Node-RED version: 3.1.0
Node.js version: 18
npm version: 9.5.1
Platform/OS: Windows
Browser: Chrome
The text was updated successfully, but these errors were encountered:
As documented, these are editor events - they are emitted in the editor not the runtime. We do not currently have a documented set of runtime events - most uses for these events related to edit-time operations.
Is there are particular event you are interested in seeing in the runtime?
Thank you for the quick reply. I understand now, I've mistaken the editor events for runtime events.
I am interested in all types of events related to changes to the flows, I'm also interested in capturing the changes themselves after they are deploy and saved to the flows.json. And I need to have the information in the runtime (back-end).
It appears that I'll be able to come up with a solution by using the editor events, by sending the information to the runtime when an event is emitted.
Additionally, I was wondering what would be the most appropriate place in the code to register all of the handlers for the events I am interested in? Should it just go into the HTML file of one the nodes I have added?
Additionally, I was wondering what would be the most appropriate place in the code to register all of the handlers for the events I am interested in? Should it just go into the HTML file of one the nodes I have added?
That would do it - it is a little hacky, but works. We do have a plugin mechanism that could also be used - but if you are registering nodes, then you already have a means to run code in the editor.
Current Behavior
By following the documentation and registering a handler for a given event (https://nodered.org/docs/api/ui/events/), and after double checking that the event listener is added to the list of events in node-red (I am actually able to emit it manually by myself). I see that none of the events that I have registered listeners for get emitted by the node-red runtime.
Expected Behavior
Events to be emitted and the event handlers I have registered to be triggered.
Steps To Reproduce
deploy
)Example flow
Environment
The text was updated successfully, but these errors were encountered: