Added comment about websocket usage
This commit is contained in:
parent
64a9c18fe1
commit
54ca0a96d6
|
|
@ -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>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue