Sidebar

How can I write a minimum ACK script that does not check anything?

0 votes
349 views
asked Dec 12, 2013 by gary-t-8719 (14,860 points)

1 Answer

0 votes
 
Best answer
As a recomendation a mimimal ACK script would at least check that you go back an ACK with somthing in it and then return true. The If statement below check the ACK message at least some type of conent, and if it passes this check then it simple returns true without any further checking of the ACK message for a acceptance or rejection.

if (response === null || response.length === 0) {

   return false;

}

return true;
answered Dec 12, 2013 by gary-t-8719 (14,860 points)
selected Dec 17, 2013 by ron-s-6919
...