% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jgd.R
\name{jgd_discover}
\alias{jgd_discover}
\title{Discover a running jgd server}
\usage{
jgd_discover()
}
\value{
A named list with \code{server_name} (character), \code{socket_path}
(character), \code{pid} (integer), and \code{server_info} (named character
vector), or \code{NULL} if no discovery file is found.
}
\description{
Reads the jgd discovery file from the platform cache directory
(\verb{~/.cache/jgd} on Linux, \verb{~/Library/Caches/jgd} on macOS,
\verb{\%LOCALAPPDATA\%/jgd} on Windows) and returns its contents.
This does not require an open jgd device — it simply reads the
file that a running server has written.
}
