|
|
@ -11,9 +11,10 @@
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
<h1>Test Page</h1>
|
|
|
|
<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 hx-ext="ws" ws-connect="/ws">
|
|
|
|
<div id="messages" hx-swap-oob="morphdom">
|
|
|
|
<div id="messages"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|
|
|
|