As it says in the documentation, Binance does not guarantee that a websocket will stay connected for more than 24 hours.
I wanted to consult you to see how it could be a good option to check if it is connected or not and in that case, if necessary, reconnect the websocket.
I use the python-connector