Hi,
I'm writing a websocket multithread program in python to get real-time data from Refinitiv.
One thread for sending request, receiving data and put them in a queue.
The other thread is to handle the data in the queue.(put them in my database).
Since sometimes the connection will disconnect for whatever reason. I wrote some reconnection logic in the on_close() function. But somehow once it's successfully reconnected, it said "Connection is already closed". And the program will not proceed to login and request data as shown.