How is failover expected to work in websockets api. In RFA I can have multiple ads hosts configured, comma separated , and the failover is taken care of, but ic an only supply one host in websockets.
RFA is client-side compiled API provided by Thomson Reuters that offers a rich service to application developers. However, application developers are limited in terms of programming languages and hardware they can develop and run their applications. The WebSocket API is a server side protocol, not a client-side API. As such, if a client wishes to use this service, they are responsible for building failover and recovery logic. The upside of using the WebSocket service is the ability to utilize any technology on any hardware platform that supports WebSockets. A server side API that supports modern technologies, gives the application developer unlimited choices in terms of language and hardware platforms to run their applications.
There are a few options you can use when working with fail over. I would recommend to simply use the connection status. For example, if a connection fails or goes down, walk through the list of servers that you define and attempt connect until success. In addition to this, you can also use the built-in PING messages sent from the ADS. If you have not seen an expected PING for a preset time, then disconnect from that server and walk down the line of your list of servers and try them.
Hi, user is retrieving TRDTIM_1 from Elektron using Websocket API sample code market_price_edpgw_service_discovery. However the timezone is in UTC. is it possible to convert the timezone to the user local timezone?