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:
+1
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user