stream_path: Get the absolute path for a shidashi stream file

View source: R/stream.R

stream_pathR Documentation

Get the absolute path for a shidashi stream file

Description

Returns the full path to the binary file that will be served at stream/{token}_{id}.bin. The filename embeds the session token so that simultaneous Shiny sessions never overwrite each other's data. Call stream_init at least once per session before relying on this function.

Usage

stream_path(id, session = shiny::getDefaultReactiveDomain())

Arguments

id

Character scalar. Stream identifier. Must be a valid file-name component (no path separators).

session

Shiny session object. Defaults to the currently active reactive domain.

Value

Invisible character scalar: absolute path to the .bin file.

See Also

stream_init, stream_to_js


shidashi documentation built on April 10, 2026, 5:07 p.m.