src/node/socket.ts/SocketProxyProvider/findFreeSocketPath
class SocketProxyProvider:  public async findFreeSocketPath(basePath: string, maxTries = 100): Promise<string> {
    let i = 0
    let path = basePath
    while ((await canConnect(path)) && i < maxTries) {
      path = `${basePath}-${++i}`
    }
    return path
  }