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