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

Function onclose

test/parallel/test-http-1.0-keep-alive.js:138–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 conn.write(ctx.data);
137
138 function onclose() {
139 console.error(' > CLIENT CLOSE');
140 if (!ctx.expectClose) throw new Error('unexpected close');
141 client();
142 }
143 conn.on('close', onclose);
144
145 function ondata(s) {

Callers 1

testFunction · 0.70

Calls 2

clientFunction · 0.70
errorMethod · 0.45

Tested by 1

testFunction · 0.56