MCPcopy Create free account
hub / github.com/mscdex/ssh2 / processResponses

Function processResponses

lib/agent.js:433–444  ·  view source on GitHub ↗
(protocol)

Source from the content-addressed store, hash-verified

431 // Ensures that responses get sent back in the same order the requests were
432 // received
433 function processResponses(protocol) {
434 let ret;
435 while (protocol[SYM_REQS].length) {
436 const nextResponse = protocol[SYM_REQS][0][SYM_RESP];
437 if (nextResponse === undefined)
438 break;
439
440 protocol[SYM_REQS].shift();
441 ret = protocol.push(nextResponse);
442 }
443 return ret;
444 }
445
446 const SYM_TYPE = Symbol('Inbound Request Type');
447 const SYM_RESP = Symbol('Inbound Request Response');

Callers 1

respondFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…