Real-world patterns you can copy directly into your project. Every example is TypeScript strict and tested against production EdgeStream deployments.
Subscribe to every event for a specific user using wildcard topic notation. Useful for notification centres and activity feeds.
Subscribe to a reply topic before publishing. The server processes the message and publishes a response to the reply topic — same pipeline, zero custom infrastructure.
Register an incoming hook that fetches user data from your API and attaches it to every message. Every downstream subscriber sees the enriched message — no duplication.
Register an outgoing hook that signs every outgoing message. The server verifies the signature — zero per-call boilerplate.
EdgeStream logs every hook execution and subscriber delivery. Query by messageId to get the complete lifecycle — timing, status, errors — for debugging and compliance.
A complete React component that subscribes to order status updates and renders them in real-time. No polling, no custom state management — just a subscription and reactive state.
Display connection state to users. EdgeStream emits structured connection events — no polling or manual ping logic required.
Stream LLM token output to the UI via EdgeStream. The AI service publishes one token per message. The React hook accumulates them — real-time typing animation with no custom streaming protocol.
Follow the get-started guide or explore the full architecture.