mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +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
677 B
HTML
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;"><div id="idMessage">This Is The Message<div></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>
|