Replace EventSource with WebSocket for price streaming

- Switch from SSE EventSource to WebSocket client connecting to
  btcdata's new /api/price/ws endpoint
- Add automatic reconnect on connection loss (3s delay)
- Update Dockerfile BTCDATA_URL to use btcdata's new Docker port 4101

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 21:32:21 +01:00
co-authored by Claude Opus 4.6
parent ce343dfcf6
commit 02cc607e73
3 changed files with 39 additions and 29 deletions
+1 -1
View File
@@ -23,6 +23,6 @@ COPY --from=build /build/target/btcprice-standalone.jar /btcprice/btcprice-stand
EXPOSE 4040
ENV PORT=4040
ENV BTCDATA_URL=http://btcdata:4100
ENV BTCDATA_URL=http://btcdata:4101
CMD ["java", "-jar", "/btcprice/btcprice-standalone.jar"]