瀏覽代碼

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>,