hyperstack_sdk/
lib.rs

1//! # hyperstack-sdk
2//!
3//! Rust client SDK for connecting to HyperStack streaming servers.
4//!
5//! This crate provides a WebSocket client for subscribing to real-time
6//! entity updates from HyperStack servers.
7//!
8//! ## Example
9//!
10//! ```rust,ignore
11//! use hyperstack_sdk::{HyperStackClient, Subscription};
12//!
13//! let client = HyperStackClient::connect("ws://localhost:8877").await?;
14//! let sub = client.subscribe("MyEntity/kv", Some(key)).await?;
15//!
16//! while let Some(frame) = sub.next().await {
17//!     println!("Update: {:?}", frame);
18//! }
19//! ```
20//!
21//! ## Streaming Modes
22//!
23//! - **State** - Single shared state object
24//! - **KV** - Key-value lookups by entity key
25//! - **List** - All entities matching filters
26//! - **Append** - Append-only event log
27
28mod mutation;
29mod client;
30mod state;
31
32pub use mutation::{Frame, Mode};
33pub use client::{HyperStackClient, Subscription};
34pub use state::EntityStore;
35
36pub use serde_json::Value;