I am having issues with futures websocket where I randomly get 1006 error. Some days it works perfectly fine but some days it throws this error every 10 minutes or so.
I’m developing on nodejs and used ws package in order to connect the websocket. I used “wss://fstream.binance.com” as base url. Only thing I subscribed is @bookTicker and used listen key to get access to user data streams.
I am confident that I handled ping correctly and other than that, I only send listenKey update request and that happens every 50 minutes or so.
Is there anyone who found a fix for this or have an explanation why it keeps throwing this error ?