mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 05:21:18 +00:00

absolute 👑
* Restore WS and SSE code
First pass at restoring removed ws and sse code. More to come.
* More progress on WS and SSE restore
* Update htmx.js
crucial whitespace
* Update documentation
* Combine SSE and WS servers into single "realtime" demo
* Realtime Test Server Updates
- separated tests for old- and new- style calling
- updated intro content and stylesheet
- removed extensions from manual test suite
* Remove SSE/WS from manual tests
23 lines
708 B
HTML
23 lines
708 B
HTML
<h1>Heartbeat Test</h1>
|
|
|
|
<div role="tablist" hx-target="#page" hx-push-url="false">
|
|
<a role="tab" hx-get="/ws-heartbeat.html" aria-selected="true">Legacy Style</a>
|
|
<a role="tab" hx-get="/ws-heartbeat-ext.html">New Style</a>
|
|
</div>
|
|
|
|
<h3>Description</h3>
|
|
<p>This test receives messages from the WebSocket server every second.
|
|
|
|
<h3>Example HTML</h3>
|
|
|
|
<pre class="code">
|
|
<div hx-ws="connect:ws://localhost/heartbeat">
|
|
<div id="idMessage"></div>
|
|
</div>
|
|
</pre>
|
|
|
|
<div class="container" hx-ws="connect:ws://localhost/heartbeat">
|
|
<h3>WebSocket Messages</h3>
|
|
<p>Each message just contains a random number generated by the server</p>
|
|
<div id="idMessage">Waiting...</div>
|
|
</div> |