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

Function connect

lib/net.js:244–255  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

242// connect(path, [cb]);
243//
244function connect(...args) {
245 const normalized = normalizeArgs(args);
246 const options = normalized[0];
247 debug('createConnection', normalized);
248 const socket = new Socket(options);
249
250 if (options.timeout) {
251 socket.setTimeout(options.timeout);
252 }
253
254 return socket.connect(normalized);
255}
256
257function getDefaultAutoSelectFamily() {
258 return autoSelectFamilyDefault;

Callers 1

mainFunction · 0.50

Calls 4

normalizeArgsFunction · 0.85
connectMethod · 0.65
debugFunction · 0.50
setTimeoutMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…