HTTP and HTTPS monitor using node.js
Published Nov 18, 2016
Version 1.0Was this article helpful?
Wouldn't this block of code cause the monitor to always be up?
req.on('error', function(err) {
console.log(err);
return;
});
For an external monitor, isn't any output at all (even an error message) taken as an indicator of success? Wouldn't this error catching portion need to remain absolutely silent to get the desired result?