MCPcopy Create free account
hub / github.com/nodejs/node / destroy

Method destroy

deps/undici/src/lib/core/socks5-client.js:141–145  ·  view source on GitHub ↗

* Destroy the client and underlying socket

()

Source from the content-addressed store, hash-verified

139 * Destroy the client and underlying socket
140 */
141 destroy () {
142 if (this.socket && !this.socket.destroyed) {
143 this.socket.destroy()
144 }
145 }
146
147 markAuthenticated () {
148 this.state = STATES.AUTHENTICATED

Callers 4

onErrorMethod · 0.95
writeMethod · 0.45
writeMethod · 0.45
destroyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected