mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-30 14:31:47 +00:00
23 lines
679 B
HTML
23 lines
679 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's has no bearing on the reconnect test.
|
|
|
|
<br><hr><br>
|
|
<div id="idMessage"></div>
|
|
-->
|
|
</body>
|
|
</html>
|