Overview
The SDK data layer includesrecord() and replay() utilities that let you capture live samples to disk and replay them later. Replayed samples flow through the same backend as live data, re-triggering any active hooks and subscribers.
Quick start
Recording
record() returns a RecordingSession context manager. It subscribes to the specified channels using policy="fifo" and writes every incoming sample to per-channel .bin files inside the target directory.
| File | Contents |
|---|---|
manifest.json | Version, channels, timestamps, sample count |
<channel>.bin | Binary stream of timestamped sample entries |
Replay
replay() reads a recording directory and publishes each sample back through the backend, preserving inter-sample timing.