mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-29 22:11:22 +00:00
20 lines
1.0 KiB
HTML
20 lines
1.0 KiB
HTML
<h1>Simple Test</h1>
|
|
<h3>Description</h3>
|
|
<p>
|
|
This page connects to several different Server Sent Event (SSE) streams, listening on the default event name "message".
|
|
Each stream should populate its own container.
|
|
</p>
|
|
<h3>Example HTML</h3>
|
|
<pre class="code">
|
|
<div hx-ext="sse" sse-url="http://localhost/posts.html" sse-swap="message">Waiting for Posts...</div>
|
|
</pre>
|
|
|
|
<h3>Test Cases</h3>
|
|
|
|
<div hx-ext="sse">
|
|
<div class="container" hx-ext="sse" sse-url="http://localhost/posts.html" sse-swap="message">Waiting for Posts...</div>
|
|
<div class="container" hx-ext="sse" sse-url="http://localhost/comments.html" sse-swap="message">Waiting for Comments...</div>
|
|
<div class="container" hx-ext="sse" sse-url="http://localhost/albums.html" sse-swap="message">Waiting for Albums...</div>
|
|
<div class="container" hx-ext="sse" sse-url="http://localhost/todos.html" sse-swap="message">Waiting for ToDos...</div>
|
|
<div class="container" hx-ext="sse" sse-url="http://localhost/users.html" sse-swap="message">Waiting for Users...</div>
|
|
</div> |