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

Function callback

test/test-misc-client-server.js:211–215  ·  view source on GitHub ↗
(err, stream)

Source from the content-addressed store, hash-verified

209
210 client.on('ready', mustCall(() => {
211 function callback(err, stream) {
212 assert(err, 'Expected error');
213 assert(err.message === 'No response from server',
214 `Wrong error message: ${err.message}`);
215 }
216 client.exec('uptime', mustCall(callback));
217 client.shell(mustCall(callback));
218 client.sftp(mustCall(callback));

Callers 7

constructorMethod · 0.85
afterReadMethod · 0.85
closeMethod · 0.85
readFileMethod · 0.85
tryStatMethod · 0.85
writeFileMethod · 0.85
writeAllFunction · 0.85

Calls 2

assertFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…