Switch price updates from HTMX polling to SSE

Replace 2s polling with Server-Sent Events for instant price updates.
Write directly to Undertow exchange output stream to ensure proper
flushing, since the Ring adapter buffers InputStream bodies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 16:09:47 +01:00
co-authored by Claude Opus 4.6
parent a50256a042
commit 08793c5099
4 changed files with 82 additions and 32 deletions
+2 -1
View File
@@ -51,7 +51,8 @@
:reitit.routes/ui
{:base-path ""
:query-fn #ig/ref :db.sql/query-fn}
:query-fn #ig/ref :db.sql/query-fn
:binance #ig/ref :ws/binance}
:ws/binance
{:query-fn #ig/ref :db.sql/query-fn