hi there,
we are trying to use the websocket API example you are providing to the community, but we face often some disconnects, and the method on_close is getting called. Iwould like to get some help here on what to do when this happens, is there somehow an easy way to reconnect ?
Could you provide me with a python example that handles such a situation when on_close() is called, as i would like to immediately reconnect?
In my code, i try to send a new authentification request with get_sts_token() but this is crashing, we get a 'WebSocketConnectiononClosedException: Connection is already closed.'
Any help and code python is welcome
Thank you