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

Method getConnections

lib/internal/socket_list.js:46–54  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

44 }
45
46 getConnections(callback) {
47 this._request({
48 cmd: 'NODE_SOCKET_GET_COUNT',
49 key: this.key,
50 }, 'NODE_SOCKET_COUNT', false, (err, msg) => {
51 if (err) return callback(err);
52 callback(null, msg.count);
53 });
54 }
55}
56
57

Calls 2

_requestMethod · 0.95
callbackFunction · 0.50

Tested by

no test coverage detected