% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stream-viz.R
\name{updateStreamViz}
\alias{updateStreamViz}
\title{Trigger an in-place update of a streaming widget}
\usage{
updateStreamViz(
  outputId,
  streaming = NULL,
  token = NULL,
  session = shiny::getDefaultReactiveDomain()
)
}
\arguments{
\item{outputId}{Character scalar. The output ID passed to
\code{\link{streamVizOutput}} (and to \code{\link{stream_path}}).}

\item{streaming}{Logical or \code{NULL}.  \code{TRUE} starts active
streaming (the widget polls for new data via \code{requestAnimationFrame});
\code{FALSE} pauses it; \code{NULL} (default) leaves the current
streaming state unchanged.}

\item{token}{Character scalar or \code{NULL}.  When \code{NULL} (default)
the session's own token is used.  Override with a parent session token
when running inside a standalone viewer (pop-out window) so that the
child session fetches the parent's binary stream file.}

\item{session}{Shiny session object. Defaults to the active reactive domain.}
}
\value{
Invisibly \code{NULL}.
}
\description{
Sends a custom Shiny message that causes the browser to re-fetch the binary
stream file and re-render the signal viewer without tearing down and
recreating the widget.  Call this after writing new data with
\code{\link{stream_to_js}}.  The \code{outputId} is used both
to locate the widget as the stream file identifier — it must
match the \code{id} passed to \code{\link{stream_path}}.
}
\seealso{
\code{\link{streamVizOutput}}, \code{\link{stream_to_js}},
  \code{\link{stream_file_id}}
}
