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

Method onError

deps/undici/undici.js:10659–10664  ·  view source on GitHub ↗

* Handle socket errors

(err)

Source from the content-addressed store, hash-verified

10657 * Handle socket errors
10658 */
10659 onError(err) {
10660 debug("socket error", err);
10661 this.state = STATES.ERROR;
10662 this.emit("error", err);
10663 this.destroy();
10664 }
10665 /**
10666 * Handle socket close
10667 */

Callers 3

onResponseErrorMethod · 0.45
onDataMethod · 0.45
[kDispatch]Method · 0.45

Calls 3

debugFunction · 0.50
emitMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected