Skip to contents

Combines session$token with id to produce the string used both by stream_path (as the filename stem) and by the browser as the URL path component under stream/.

Usage

stream_file_id(id, session = shiny::getDefaultReactiveDomain(), token = NULL)

Arguments

id

Character scalar. The base stream identifier (no path separators).

session

Shiny session object. Defaults to the active reactive domain.

token

Character scalar or NULL. When 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: "{token}_{id}".