SSE to WebSocket

I needed to ping pong the content of the message because it was too long
for a SSE event. I swaped to websocket instead
This commit is contained in:
2024-08-05 18:22:51 +02:00
parent c7924476ee
commit 3266c8787e
13 changed files with 720 additions and 203 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<div class="chat-container mt-5"
style="padding-bottom: 155px"
hx-indicator="#textarea-control"
hx-ext="sse">
hx-ext="ws">
<hx hx-get="/loadChat" hx-trigger="load once" hx-swap="outerHTML"></hx>
<hx hx-get="/loadChatInput" hx-trigger="load once" hx-swap="outerHTML" id="textarea-control"></hx>
</div>