@ -11,9 +11,10 @@
</head>
<body>
<h1>Test Page</h1>
<!-- Use "<p id=\"messages\">test_0</br></p>" as the websocket message to replace the "messages" div -->
<!-- Alternatively do "<p hx-swap-oob=\"beforeend:#messages\">test_0</br></p>" to add it to the end of the messages div -->
<div hx-ext="ws" ws-connect="/ws">
<div id="messages" hx-swap-oob="morphdom">
</div>
<div id="messages"></div>
</body>
</html>