intro vid on homepage

This commit is contained in:
tim
2025-03-05 18:12:34 -04:00
parent 488e9f45f1
commit ebf70dd10c
6 changed files with 55 additions and 15 deletions

View File

@@ -19,8 +19,15 @@ export function subOHLC( chainId, pool, period ) {
export function refreshOHLCSubs() {
const keys = []
let chainId = null
for (const key of Object.keys(ohlcSubCounts)) {
const [chainId, pool, period] = key.split('|')
const [curChainId, pool, period] = key.split('|')
if (chainId === null)
chainId = curChainId
else if (chainId !== curChainId) {
console.error('refreshOHLCSubs: mixed chainIds')
continue
}
keys.push(`${pool}|${period}`)
}
socket.emit('subOHLCs', chainId, keys)