--- ---

Real-time

One mental model. Different transports.

Your business code has one idea — values arriving over time — and in Green Tea that idea is an AsyncIterable. Declare the transport with a decorator (@Sse, @Ws, @Stream) and return the stream; the framework handles framing, backpressure, cleanup and disconnects. Only that one line changes between them, and your wire contract is what you declared — never a surprise sprung by a return value.

AsyncIterable → SSE · NDJSON · WebSocket