docs(site): sell real-time and the graph honestly
Two claims a skeptic would catch. RealTime still said 'return an AsyncIterable' with no mention of declaring the transport — the same implicit-return the framework now rejects with TransportMismatchError; the honest version (declare the transport, the contract is never a surprise) sells harder anyway. And GraphNotChain's 'no one else has the graph' invited the obvious 'Angular and Nest have a DI graph' — so say the real, unrefutable thing: they resolve a graph of services, this resolves your request pipeline. Same fix in the founder post. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
1 parent
813f7f88ad
commit
1869e6c2c3
3 files changed
+8
-4
No files matched your search
@@ -23,7 +23,9 @@ import GraphMotif from '../GraphMotif.astro';
|
||||
</ul>
|
||||
|
||||
<p class="graph-idea__punch">
|
||||
This is pure composition. No other framework shows it, because no one else has the graph.
|
||||
This is pure composition. DI frameworks resolve a graph of <em>services</em>; Green Tea resolves your <em
|
||||
>request pipeline</em
|
||||
> the same way — the steps a route runs are computed from what it asks for, not the order you wrote them in.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
<h2>One primitive for real-time.</h2>
|
||||
|
||||
<p class="realtime__body">
|
||||
SSE, ndjson, or a duplex WebSocket — return an <code>AsyncIterable</code>. One mental model, one line. No
|
||||
separate gateway, no bolt-on package.
|
||||
SSE, ndjson, or a duplex WebSocket — one primitive, an <code>AsyncIterable</code>. You declare the transport
|
||||
with a decorator (<code>@Sse</code>, <code>@Ws</code>, <code>@Stream</code>); only that one line changes. No
|
||||
separate gateway, no bolt-on package — and your wire contract is what you declared, never a surprise sprung by
|
||||
a return value.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in new issue
Block a user