Hi folks,
Is there any way (on the server side) to detect when a flow editor has client been closed?
For my new node-red-contrib-xterm node, a separate pseudo-terminal is started (on the server) for each flow editor that is started. I can easily trigger that from the client startup code. But as soon as a flow editor is closed, I need to stop the corresponding pseudo-terminal on the server.
But I cannot find a server-side event to accomplish this. Only found a client-side code snippet, and it doesn't work for me (e.g. when I close the tabsheet in Chrome where my flow is being displayed):
RED.events.on("editor:close",function() { .... })
P.S. A side question: does anybody know whether there is (somewhere) a unique workspace id available, which I could use to unique identify the flow editors (to use as a key in the map where I store my pseudo-terminal instances)?
Thanks a lot!!
Bart