ソースを参照

docs(sse): update price_stream_sse_handler documentation to clarify connection closure after 24 hours

Daniel Chew 7 ヶ月 前
コミット
7e9c707af5
1 ファイル変更3 行追加0 行削除
  1. 3 0
      apps/hermes/server/src/api/rest/v2/sse.rs

+ 3 - 0
apps/hermes/server/src/api/rest/v2/sse.rs

@@ -78,6 +78,9 @@ fn default_true() -> bool {
     params(StreamPriceUpdatesQueryParams)
 )]
 /// SSE route handler for streaming price updates.
+///
+/// The connection will automatically close after 24 hours to prevent resource leaks.
+/// Clients should implement reconnection logic to maintain continuous price updates.
 pub async fn price_stream_sse_handler<S>(
     State(state): State<ApiState<S>>,
     QsQuery(params): QsQuery<StreamPriceUpdatesQueryParams>,