streaming

Stream distributed actor state to Swift clients with delta encoding.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/briannadoubt/trebuchet-plugin --skill streaming-briannadoubt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: streaming
Source: https://github.com/briannadoubt/trebuchet-plugin/tree/main/skills/streaming
Command: npx skills add https://github.com/briannadoubt/trebuchet-plugin --skill streaming-briannadoubt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Real-time state streaming eliminates polling by pushing distributed actor state updates to clients, enabling responsive UIs and timely data synchronization.

Core Features & Use Cases

  • Live state updates: subscribe to actor state changes and stream them to connected clients.
  • Automatic reconnection & filtering: gracefully reconnect and apply server-side filters to reduce bandwidth.
  • Delta encoding: send only changed fields to minimize payloads for large states.
  • SwiftUI integration: seamless use with @ObservedActor for reactive interfaces.

Quick Start

Connect to a running Trebuchet server, observe a TodoList's state stream, and render live updates in your SwiftUI view.

Frequently Asked Questions about streaming

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stream distributed actor state to SwiftUI clients in real-time?

Real-time streaming pushes distributed actor state updates to clients using @StreamedState and @ObservedActor, eliminating polling and enabling instant UI synchronization in SwiftUI applications.

What is delta encoding and how does it optimize real-time state streaming?

Delta encoding minimizes payload sizes during real-time state streaming by sending only the changed fields of distributed actor state, significantly reducing bandwidth usage for large state objects.

Can I use @ObservedActor to automatically subscribe to Trebuchet server state changes?

Yes, @ObservedActor enables automatic client subscription to distributed actor state streams from a running Trebuchet server, rendering live updates reactively within SwiftUI views.

How does graceful reconnection work for real-time streaming in Swift applications?

Graceful reconnection handles streaming lifecycle events like start, data, end, and resume, ensuring continuous state synchronization when network connections drop during real-time streaming.

Does this streaming approach support server-side filtering to reduce bandwidth?

Server-side filtering applies constraints to state streams before transmission, ensuring clients only receive relevant updates and reducing overall bandwidth consumption during real-time streaming.

What is the best way to sync large distributed actor states without polling?

Real-time streaming eliminates polling by pushing distributed actor state updates directly to clients, combining delta encoding and server-side filtering to efficiently sync large states.