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

Method end

lib/server.js:1281–1287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1279 }
1280
1281 end() {
1282 if (this._sock && isWritable(this._sock)) {
1283 this._protocol.disconnect(DISCONNECT_REASON.BY_APPLICATION);
1284 this._sock.end();
1285 }
1286 return this;
1287 }
1288
1289 x11(originAddr, originPort, cb) {
1290 const opts = { originAddr, originPort };

Callers 1

constructorMethod · 0.95

Calls 1

disconnectMethod · 0.80

Tested by

no test coverage detected