mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 13:31:06 +00:00
added manual test (by @benpate)
This commit is contained in:
parent
a55d495d85
commit
c98c1abc33
22
test/manual/websocket-reconnect.html
Normal file
22
test/manual/websocket-reconnect.html
Normal 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;"><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's has no bearing on the reconnect test.
|
||||
|
||||
<br><hr><br>
|
||||
<div id="idMessage"></div>
|
||||
-->
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user