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

Function client

test/sequential/test-net-GH-5504.js:60–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60function client() {
61 const net = require('net');
62 const client = net.connect({
63 host: common.localhostIPv4,
64 port: common.PORT,
65 }, function() {
66 client.destroy();
67 });
68}
69
70function parent() {
71 const spawn = require('child_process').spawn;

Callers 1

Calls 3

connectMethod · 0.65
requireFunction · 0.50
destroyMethod · 0.45

Tested by

no test coverage detected