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

Method close

lib/Channel.js:207–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 }
206
207 close() {
208 if (this.outgoing.state === 'open' || this.outgoing.state === 'eof') {
209 this.outgoing.state = 'closing';
210 this._client._protocol.channelClose(this.outgoing.id);
211 }
212 }
213
214 destroy() {
215 this.end();

Callers 2

destroyMethod · 0.95
onFinishFunction · 0.45

Calls 1

channelCloseMethod · 0.80

Tested by

no test coverage detected