Open dimonchoo opened 4 years ago
The result is stored as a json in result
for example you could call console.log(result);
and get the full json output.
And would not recommend to do this in a let
this work for me
async checkProxyTunnel(itemProxy) {
return new Promise(function (resolve, reject) {
ProxyVerifier.testAll(itemProxy, function (error, result) {
resolve({ result, error })
})
})
}
and use:
await checkProxyTunnel(itemProxy)
where itemProxy is
itemProxy = {
ipAddress: '192.64.13.4'
port:8080
protocol:'https'
}
Help me please! I newbie in js. I need to return result of your check but i can`t.
Tried 1:
Tried 2:
Tried 3:
Tried 4:
Maybe answer is simple, but i can`t understand how get result.