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

Function emitClose

lib/internal/http2/core.js:1169–1173  ·  view source on GitHub ↗
(self, error)

Source from the content-addressed store, hash-verified

1167// Emits an error event followed by a close event if err is truthy. Used
1168// by Http2Session.prototype.destroy()
1169function emitClose(self, error) {
1170 if (error)
1171 self.emit('error', error);
1172 self.emit('close');
1173}
1174
1175function cleanupSession(session) {
1176 const socket = session[kSocket];

Callers 1

finishSessionCloseFunction · 0.85

Calls 1

emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…