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
stream_to_js. The outputId is used both
to locate the widget as the stream file identifier — it must
match the id passed to stream_path.
Usage
updateStreamViz(
outputId,
streaming = NULL,
token = NULL,
session = shiny::getDefaultReactiveDomain()
)Arguments
- outputId
Character scalar. The output ID passed to
streamVizOutput(and tostream_path).- streaming
Logical or
NULL.TRUEstarts active streaming (the widget polls for new data viarequestAnimationFrame);FALSEpauses it;NULL(default) leaves the current streaming state unchanged.- token
Character scalar or
NULL. WhenNULL(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.- session
Shiny session object. Defaults to the active reactive domain.