Updated to BunRouter

This commit is contained in:
2024-01-24 11:22:33 -07:00
parent ab639dec20
commit 8d3f803474
17 changed files with 387 additions and 160 deletions

View File

@ -5,7 +5,7 @@
</a>
</li>
<li>
<a class="no-underline" href="/ssedemo">
<a class="no-underline" href="/sse">
SSE Demo
</a>
</li>

View File

@ -13,7 +13,7 @@ GOTH // SSE <div class="badge badge-accent">DEMO</div>
<h1 class="text-4xl">Server Sent Events</h1>
<h2 class="text-xl">This page demonstrates the use of the <a href="https://htmx.org/extensions/sse/">HTMX SSE Extention</a> to receive Server Sent Events on the "default" channel.</h2>
<p class="text-lg">Any events received on the "default" channel will appear below:</p>
<div hx-ext="sse" sse-connect="/api/ssedemo" sse-swap="message">
<div hx-ext="sse" sse-connect="/api/sse" sse-swap="message">
Waiting for SSE Message...
</div>