MCPcopy Index your code
hub / github.com/nodejs/node / emitErrorEvent

Function emitErrorEvent

lib/_http_client.js:104–112  ·  view source on GitHub ↗
(request, error)

Source from the content-addressed store, hash-verified

102const onClientResponseFinishChannel = dc.channel('http.client.response.finish');
103
104function emitErrorEvent(request, error) {
105 if (onClientRequestErrorChannel.hasSubscribers) {
106 onClientRequestErrorChannel.publish({
107 request,
108 error,
109 });
110 }
111 request.emit('error', error);
112}
113
114const { addAbortSignal, finished } = require('stream');
115

Callers 6

ClientRequestFunction · 0.85
socketCloseListenerFunction · 0.85
socketErrorListenerFunction · 0.85
socketOnEndFunction · 0.85
socketOnDataFunction · 0.85
_destroyFunction · 0.85

Calls 2

publishMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…