src/node/cli.ts/readSocketPath
export async function readSocketPath(path: string): Promise<string | undefined> {
  try {
    return await fs.readFile(path, "utf8")
  } catch (error) {
    // If it doesn't exist, we don't care.
    // But if it fails for some reason, we should throw.
    // We want to surface that to the user.
    if (!isNodeJSErrnoException(error) || error.code !== "ENOENT") {
      throw error
    }
  }
  return undefined
}