I’m subscribing to new blocks on BNB chain via Websocket (on the free plan, with plenty of API credits left), and it starts disconnecting after 20 mins. I have an auto-reconnect to handle this but then it just repeatedly re-connects and disconnects every 1-2 minutes. If I shut down the websocket and start again the same pattern occurs - everything’s ok for 20 mins, then repeated disconnections every 1-2 minutes.
Is this a problem with the free plan? Or would this also happen on a paid plan?
As I said, “I have an auto-reconnect to handle this”, everything mentioned in the post you recommended has been implemented already.
I’m specifically interested in understanding the mechanism at work here. Why does the websocket always start disconnecting after 20 mins, then repeated auto-connect and disconnect every couple of mins? Yet if I shut down my node.js script and start again, everything’s fine for another 20 mins. I’m not interested in alternatives like QuickAlerts, I just want to understand what the backend system is doing here.
My only assumption is that the free plan is subject to these programmed disconnections, which is fine, I’ll happily upgrade if that’s the case, but I don’t want to waste money if this problem will keep happening even on a paid account.