Hey,
I have problems with the call: node.send(msg).
When I call node.send(msg) within node.on('input', function(msg){}), it works, but this call within function Test(n) {} does not work always (sometimes, if the flow already exists!, but never after the whole flow was imported).
I read docs regarding node.send(msg), e.g. How node.send() works, but I cannot fix this.
Is this call synchronous (How node.send() works)?
Should I call node.send(msg) within an asynchronous context?
Please help to get the right direction.
Many thanks.