Hello, has anyone come across below issues:
1) Sometimes websocket connection is not establishing
2) Sometimes there is no response from Refinitiv
How to solve this issue?
Could you please clarify the "We are generating a new access token every 5 seconds" message? Why does the application refresh token every 5 seconds?
It would be nice if you can post a cutdown version of your code that can replicate the issue to let us check in detail.
### RTO Access Token time ###
The Access Token expiration time is based on the "expires_in" information value. The default expires_in is 600 seconds (10 minutes), so the application should refresh a token with RDP and re-send a new access token to the WebSocket server every 90% of the initial time before it expires (aka 9 minutes), not every 5 seconds.
### RTO Workflow ###
Please let me explain more about the RTO WebSocket connection workflow. The WebSocket - RTO connection workflow is a mix of the RDP APIs HTTP and WebSocket API workflows. The workflow summaries are as follows.
You can see more detail on the RTO Python market_price_rdpgw_service_discovery.py example (the code is in Python, but the concept is the same for all languages).
I strongly suggest the client read the WebSocket API: Connect to Refinitiv Real-Time - Optimized tutorial.
I am sorry to hear that you are facing those issues. Are you connecting to your local RTDS or RTO? Can you replicate the issue on demand with the WebSocket API examples?
About the "Sometimes there is no response from Refinitiv", the WebSocket API is a server-side API, so you may need to contact the server team to verify the issue on the server side. I highly recommend you contact the Real-Time support team from https://my.refinitiv.com/content/mytr/en/helpandsupport.html website.