intro vid on homepage
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user