MCPcopy Create free account
hub / github.com/Adamant-im/pool / resolveControlSocketPath

Function resolveControlSocketPath

server/src/helpers/control/socketPath.js:25–31  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

23 * @returns {string} Absolute path to the control socket
24 */
25export function resolveControlSocketPath(config) {
26 if (config.controlSocket) {
27 return config.controlSocket;
28 }
29
30 return path.join(controlSocketDir(), `control-${config.port}.sock`);
31}

Callers 2

startControlServerFunction · 0.90
getSocketPathFunction · 0.85

Calls 1

controlSocketDirFunction · 0.85

Tested by

no test coverage detected