Streaming Data
The Streaming tab provides continuous real-time mock data emission. Instead of generating a static dataset, it emits new data points at configurable intervals - perfect for testing live dashboards, real-time charts, monitoring UIs, or any system that consumes a data feed.
Streaming works in both Edit Mode and Play Mode. You don't need to enter Play Mode to test a live data feed.
Using the Streaming Tab
- Status indicator - Shows "● Running" (green) when streaming or "○ Stopped" (gray) when idle. Also displays the current listener count.
- Rhythm - Select how data is emitted over time (see Rhythm Reference below). The controls below update dynamically based on the selected rhythm.
- Pattern - The series pattern used for generated values (same 15 patterns as the Series tab).
- Labels - The label preset for emitted data points.
- Points per Emission - How many data points are generated per emission (1–10).
- Min / Max Value - Value range for generated data.
- Noise - Randomness factor (0–0.5).
- Start / Stop - Toggle button to begin or end streaming.
- Emit Once - Fire a single emission manually without starting continuous streaming.
- Clear Log - Clear the stream log.
- Stream Log - A scrollable list of timestamped entries showing each emitted data point. Newest entries appear at the top. Maximum 50 entries.

Rhythm Reference
Rhythm | Behavior |
|---|---|
Constant | Emits at a fixed interval. Predictable, metronome-like. |
Random | Emits at random intervals within a range. More organic feel. |
Burst | Emits a rapid burst of data, then pauses. Simulates batch updates. |
Drip | Emits single values one at a time. Slow, steady feed. |
Label Continuity
Labels continue sequentially across emissions. If the first emission produces "Jan, Feb, Mar" and the next emission produces 3 more points, they will be labeled "Apr, May, Jun" - not "Jan, Feb, Mar" again. This makes streaming data behave realistically over time.
Listener Model
External systems receive stream data by registering as listeners. The Status indicator in the Streaming tab shows the current listener count. The MockMagic Editor window itself is always registered as a listener (that's how the Stream Log works). Other listeners - such as charts, scripts, or monitoring systems - can register via the scripting API (see Section 8).