Hi,
I have a node which has 0 inputs and 1 output. I need to use this node as a mediator which converts and forwards the response of a rest service based on a specific parameter of the response. I have to implement this node to send requests to the REST service every 5 seconds and give output based on the response from the requested service. I do not know how to perform an action without an explicit call to a node. Up to now, I used
`node.on('input';function(msg){
//perform action
//then send output
}
which performs some action when we give an input to the node. How can we perform some action (REST service call) without 'input' event or any other explicit event? The node should start this action once it is deployed.
How can I do this?