streaming
Installation
SKILL.md
Realtime State Streaming
Stream state changes from distributed actors to clients in realtime with automatic synchronization, reconnection, filtering, and bandwidth optimization.
Overview
Trebuchet's streaming feature allows distributed actors to expose reactive state that automatically updates all connected clients in realtime. This eliminates manual polling and provides a seamless, reactive experience with production-ready features like graceful reconnection, server-side filtering, and delta encoding.
Quick Start
Defining a Streaming Actor
Use the @StreamedState macro to make a property automatically notify subscribers:
@Trebuchet
public distributed actor TodoList {
@StreamedState public var state: State = State()