% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stream-viz.R
\name{stream_file_id}
\alias{stream_file_id}
\title{Build the token-qualified stream file identifier}
\usage{
stream_file_id(id, session = shiny::getDefaultReactiveDomain(), token = NULL)
}
\arguments{
\item{id}{Character scalar. The base stream identifier (no path separators).}

\item{session}{Shiny session object. Defaults to the active reactive domain.}

\item{token}{Character scalar or \code{NULL}.  When \code{NULL} (default)
the session's own token is used.  Override with a parent session token
so that a standalone viewer (child session) can address the parent's
binary stream file.}
}
\value{
Character scalar: \code{"{token}_{id}"}.
}
\description{
Combines \code{session$token} with \code{id} to produce the string used
both by \code{\link{stream_path}} (as the filename stem) and by the browser
as the URL path component under \code{stream/}.
}
\seealso{
\code{\link{stream_path}}, \code{\link{stream_viz}},
  \code{\link{updateStreamViz}}
}
