Skip to contents

Reads the binary envelope written by stream_to_js and returns the header and decoded body as a list.

Usage

read_stream_vis(path)

Arguments

path

Character scalar. Absolute path to a .bin file produced by stream_to_js.

Value

A list with components:

header

Named list parsed from the JSON header (contains data_type, signature, timestamp, and any extra fields).

data

Decoded body: a raw vector for "raw", an R object for "json", or a numeric/integer vector for "int32", "float32", "float64".