skip to Main Content

Javascript – Return Promise on a callback function

I'd like to return a Promise on a spĂ©cific function that is not async. The result is undefined when I call the function. My code : async function _callAccessControl(response, rpaReservation) { if (rpaResource.access_control_identifier && !accessControlExist) { return soap.createClientAsync('https://ipevia.com/public/files/onvif/credential.wsdl', { endpoint:…

VIEW QUESTION
Back To Top
Search