little question here:
For my sox record node i have the option that the user can choose whether to start recording on an input message or have no input but a button like the inject node instead to start and stop. So i just started implementing the 1.0 things like using send and done to tell the runtime when the node is done recording. So my question is do i somehow have access to the done function when the node was started with the button? As now the record function gets called from the request from the client and not from the on input function. When the record function gets called from the on input i pass the the msg, send, done to the record function. Right now i check if they were passed so the complete node will not be triggered when it was started with the button as i didn’t pass them than. Is there some way to access the done function and pass it when triggered with the button through a client request?
Edit a little additional question.
As i said above when in msg control mode it makes use of the done function. As the node receives a start and stop message to control recording should i although call done for the processing of the stop message? as logically both input messages belong to the same process of the node i should only call done once right? As otherwise the complete node will trigger twice for one process. And if i call done only once should i use the done from the start or the stop message as this will change which msg the complete node puts out.