docs(transport): reword stale implicit-streaming passages
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -143,4 +143,4 @@ receive `undefined`. Boot fails loudly, so you never serve `undefined`.
|
||||
- Everything a handler can inject: [Argument decorators](/guides/arguments/) and the
|
||||
[decorator reference](/reference/decorators/).
|
||||
- Coerce and validate injected values with Standard Schema: [Validation](/guides/validation/).
|
||||
- Return an `AsyncIterable` to push data over time: [Streaming](/guides/streaming/).
|
||||
- Declare `@Sse` and return an `AsyncIterable` to push data over time: [Streaming](/guides/streaming/).
|
||||
@@ -28,7 +28,7 @@ Streaming bypasses the response transformer — the transport frames each value
|
||||
|
||||
## Streaming — SSE
|
||||
|
||||
Return an `AsyncIterable` and the pipeline streams it (the transformer is bypassed; the transport frames it, handles backpressure, and cleans up on disconnect).
|
||||
A route decorated `@Sse` streams — that's what triggers it, not the return value. It must return an `AsyncIterable`; the transport frames each value as an SSE event, handles backpressure, and cleans up on disconnect (the transformer is bypassed).
|
||||
|
||||
```typescript
|
||||
import { Route, Sse } from '@green-tea/core';
|
||||
|
||||
Reference in new issue
Block a user