Files
website/src/components/sections/RealTime.astro
T
chrnx e083f244c0 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>
2026-07-17 10:16:47 -05:00

40 lines
975 B
Plaintext

---
---
<section class="realtime section--panel">
<div class="wrap realtime__inner">
<p class="kicker">Real-time</p>
<h2>One primitive for real-time.</h2>
<p class="realtime__body">
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>
<style>
.realtime__inner {
max-width: 60ch;
margin: 0 auto;
text-align: center;
}
.realtime__body {
color: var(--dim);
font-size: 1.1rem;
margin: 0 auto;
max-width: 52ch;
}
.realtime__body code {
background: var(--base);
border-radius: 4px;
padding: 0.15em 0.4em;
font-size: 0.9em;
color: var(--ink);
}
</style>