ProxyVerifier.test(proxy, {
testUrl: 'https://www.google.com',
testFn: function(data, status, headers) {
// Check the response data, status, and headers.
// Throw an error if the test failed.
throw new Error('Test failed!');
// Do nothing if the test passed.
}
}, function(error, results) {
// Do something with error or results.
});
Can now run your own custom tests like this: