1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
478 views
by gary-t-8719 (15.1k 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;
by gary-t-8719 (15.1k points)
selected by ron-s-6919
...