My websocket connection gets disconnected very often websockets.exceptions.ConnectionClosedError: code = 4040 (private use), reason = Draining connection
How can I keep the websocket connection alive or reconnect automatically?
I have found a solution here on the forum for Javascript