wait to subscribe to stream if it isnt open yet
This commit is contained in:
parent
6067dd1665
commit
c594011202
|
@ -69,6 +69,9 @@ export function subscribeOnStream(
|
||||||
}
|
}
|
||||||
if (!isOpen(socket)) {
|
if (!isOpen(socket)) {
|
||||||
console.warn('Socket Closed')
|
console.warn('Socket Closed')
|
||||||
|
socket.addEventListener('open', (_event) => {
|
||||||
|
socket.send(JSON.stringify(msg))
|
||||||
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.warn('[subscribeBars birdeye]')
|
console.warn('[subscribeBars birdeye]')
|
||||||
|
|
Loading…
Reference in New Issue