chore: sync price monitor updates
This commit is contained in:
@@ -9,6 +9,15 @@ export const priceStreamLifecycle = ref<PriceStreamLifecycle>('idle')
|
||||
|
||||
export const priceStreamConnectingSince = ref(0)
|
||||
|
||||
/** آخرین رویداد list استریم */
|
||||
export const priceStreamList = ref<Array<Record<string, unknown>>>([])
|
||||
|
||||
/** آخرین بدنهٔ tv/products که از SSE آمده */
|
||||
export const priceStreamProducts = ref<Array<Record<string, unknown>>>([])
|
||||
|
||||
/** unix ساعت سرور از رویداد time استریم */
|
||||
export const priceStreamServerUnix = ref(0)
|
||||
|
||||
const CONNECTING_POLL_AFTER_MS = 8000
|
||||
|
||||
export function shouldUsePricePolling(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user