Hi,
I'm writing a client side websocket program in python to get real time data from Refinitiv.
I'm using multithreading where one thread receives the data and put them in a queue and the other thread
handle the data in the queue(update our own database).
It's supposed to run 24/7 all year long.
But I've discovered that after some time(ranging from about 1 to 4 days) the connection will be lost.
The strange thing is that it dosen't jump to on_close() or on_error(). The program simply stops receiving data or ping/pong message from the server but the program is still running just nothing happens.
So how should I go about reconnecting to the server in this situation.
I've already written reconnection logic in on_close() and on_error(). But since it doesn't jump to either of those functions I don't know what to do.
Please help. Thank you