Reference
The TypeScript types are fully inferred; no manual type assertions needed even with complex nested schemas.
Batching is automatic—control it via `batch(100)` or `batch({ size: 50, timeoutMs: 1000 })` to trade latency for throughput.
const stream = new RelayKit( apiKey: process.env.API_KEY, region: 'us-east-1' );
The core relayhub object is a lightweight wrapper that manages the lifecycle of your event stream.
Reference
Batching is automatic—control it via `batch(100)` or `batch({ size: 50, timeoutMs: 1000 })` to trade latency for throughput.
const client = new relayhub.Client( auth: 'Bearer token', retry: true, timeout: 30000 );
Metrics are published to standard formats (Prometheus, CloudWatch, DataDog) with zero configuration.