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

Function getSocketList

lib/internal/child_process.js:1110–1118  ·  view source on GitHub ↗
(type, worker, key)

Source from the content-addressed store, hash-verified

1108
1109
1110function getSocketList(type, worker, key) {
1111 const sockets = worker[kChannelHandle].sockets[type];
1112 let socketList = sockets[key];
1113 if (!socketList) {
1114 const Construct = type === 'send' ? SocketListSend : SocketListReceive;
1115 socketList = sockets[key] = new Construct(worker, key);
1116 }
1117 return socketList;
1118}
1119
1120
1121function maybeClose(subprocess) {

Callers 2

sendFunction · 0.85
gotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…