MCPcopy
hub / github.com/mongodb/node-mongodb-native / getSockets

Function getSockets

test/tools/fixtures/process_resource_script.in.js:90–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 * @returns Array of socket resources in the event loop
89 */
90const getSockets = () => process.report.getReport().libuv.filter(r => r.type === 'tcp');
91
92/**
93 * @returns Array of remote endpoints of socket resources in the event loop

Callers 2

runFunction · 0.85

Calls 1

filterMethod · 0.45

Tested by 2

runFunction · 0.68