added manual test (by @benpate)

This commit is contained in:
Sven R. Kunze 2021-03-12 20:46:59 +01:00
parent a55d495d85
commit c98c1abc33

View File

@ -0,0 +1,22 @@
<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's has no bearing on the reconnect test.
<br><hr><br>
<div id="idMessage"></div>
-->
</body>
</html>