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

Function onReady

test/common.js:198–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196 }
197
198 function onReady() {
199 if (this === client) {
200 assert(!clientReady,
201 msg('Received multiple ready events for client'));
202 clientReady = true;
203 } else {
204 assert(!serverReady,
205 msg('Received multiple ready events for server'));
206 serverReady = true;
207 }
208 clientReady && serverReady && allReady && allReady();
209 }
210
211 function onClose() {
212 if (this === client) {

Callers

nothing calls this directly

Calls 2

assertFunction · 0.85
msgFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…