Updated to BunRouter
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="no-underline" href="/ssedemo">
|
||||
<a class="no-underline" href="/sse">
|
||||
SSE Demo
|
||||
</a>
|
||||
</li>
|
||||
|
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user