htmx/test/realtime/static/ws-reconnect-ext.html
Ben Pate 546e346e98
Restore hx-ws and hx-sse tags (#811)
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
2022-02-12 11:11:30 -07:00

23 lines
677 B
HTML

<html>
<head>
<script src="../../src/htmx.js"></script>
<title>WebSockets Test</title>
</head>
<body hx-ws="connect:wss://echo.websocket.org">
<form hx-ws="send">
Send Message to Echo Server...<br>
<textarea name="message" style="width:500px; height:300px;">&lt;div id="idMessage"&gt;This Is The Message&lt;div&gt;</textarea>
<br/><input type="submit"/>
</form>
<!--
Receive doesn't work with this `echo` server because of differences in the way HTMX formats
`send` messages vs. what it expects for replies. It has no bearing on the reconnect test.
<br><hr><br>
<div id="idMessage"></div>
-->
</body>
</html>