For example, something similar i want to do:
var http = require(\'http\');
const PORT=8080;
var myvar = \"Test: \";
function handleRequest(request, response){
I'm not sure but you can try to send request to your own node server via http
or use restler
node module.
function recursive() {
http.request(url, function(err, res) {
recursive();
})
}
https://nodejs.org/api/http.html#http_http_request_options_callback
And call this method when you want to start your recursion.