Match SSE ping comments to the 20s server heartbeat.

Rename the equals price-trigger condition to reach-this-price.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-08 18:11:26 +03:30
co-authored by Cursor
parent 5015fb2838
commit 0f6d8b37f4
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -30,6 +30,7 @@ const ALERT_COOLDOWN_MS = 5 * 60 * 1000
const FALLBACK_POLL_INTERVAL_MS = 10000
const PRICE_SOURCE_STALE_MS_MOBILE = 50000
const PRICE_SOURCE_STALE_MS_DESKTOP = 35000
/** بدون event قیمت؛ ping هر ۲۰ث از سرور activity را تازه می‌کند */
const STALE_STREAM_MS = 120000
const FALLBACK_POLL_DELAY_MS = 2500
const STREAM_CONNECTING = 0