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

Function createConnection

test/parallel/test-http-client-abort3.js:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const net = require('net');
6
7function createConnection() {
8 const socket = new net.Socket();
9
10 process.nextTick(function() {
11 socket.destroy(new Error('Oops'));
12 });
13
14 return socket;
15}
16
17{
18 const req = http.get({ createConnection });

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…