diff --git a/apis/birdeye/streaming.ts b/apis/birdeye/streaming.ts index 66e6b667..bbc7f483 100644 --- a/apis/birdeye/streaming.ts +++ b/apis/birdeye/streaming.ts @@ -69,6 +69,9 @@ export function subscribeOnStream( } if (!isOpen(socket)) { console.warn('Socket Closed') + socket.addEventListener('open', (_event) => { + socket.send(JSON.stringify(msg)) + }) return } console.warn('[subscribeBars birdeye]')