diff --git a/application/modules/hsm/authenticate2.js b/application/modules/hsm/authenticate2.js index 5a4aaf2..3f6b0dd 100644 --- a/application/modules/hsm/authenticate2.js +++ b/application/modules/hsm/authenticate2.js @@ -86,12 +86,21 @@ const controller = async (req, res) => { useClient.sendData(reqData); + let respData = null; + let respData1 = null; + setInterval(function () { respData = Buffer.from([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]); _timeOut = true; }, 10000); useClient.ws.on('message', (message) => { + winston.logger.debug( + `${uniqueCode} [ PROCESSING LOADING-BALANCE TOPUP-2 ]: message from HSM MESSAGE WOY... ${generate.buf2hex( + message + )}` + ); + while ( message[2] == 2 && message[0] == _validationTrxID[0] &&