Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
test
Function · 0.70
Calls
2
client
Function · 0.70
error
Method · 0.45
Tested by
1
test
Function · 0.56