Skip to content

Commit 7e9c707

Browse files
committed
docs(sse): update price_stream_sse_handler documentation to clarify connection closure after 24 hours
1 parent e45ef89 commit 7e9c707

File tree

1 file changed

+3
-0
lines changed
  • apps/hermes/server/src/api/rest/v2

1 file changed

+3
-0
lines changed

apps/hermes/server/src/api/rest/v2/sse.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ fn default_true() -> bool {
7878
params(StreamPriceUpdatesQueryParams)
7979
)]
8080
/// SSE route handler for streaming price updates.
81+
///
82+
/// The connection will automatically close after 24 hours to prevent resource leaks.
83+
/// Clients should implement reconnection logic to maintain continuous price updates.
8184
pub async fn price_stream_sse_handler<S>(
8285
State(state): State<ApiState<S>>,
8386
QsQuery(params): QsQuery<StreamPriceUpdatesQueryParams>,

0 commit comments

Comments
 (0)