I have successfully get the json with list of services (with endpoints and port number). However, I am having an issue establishing connection. I use https://www.websocket.org/echo.html to test the connection before the implementation. Thanks
You can find the ERT in Cloud - Installation and Configuration Guide in WebSocket API document page. It will give you a basic concept of how to implement ERT in Cloud WebSocket application (for any languages).
The basic flow for ERT in Cloud WebSocket application are following:
Hi @brook, that website cannot be used for testing, since it is a simple echo test. For using the ERT websocket protocol, the user needs to send in the login message, with the Access token included in the header or key, or else the request will be rejected by the gateway servers.
Please use the Python or Java sample provided in the downloads section - Elektron Real Time in Cloud Examples to get a working sample implementation.
Hi Gurpreet! Thanks for the response!
We are currently use golang. And, I am able able to send a get request to receive lists of endpoints and ports. What's the endpoint to establish a connection?
I am following the guild below:
The service discovery returns a list of available endpoints and the user should choose the one which is geographically closest to them.
For most users in Americas region, this will be one of the servers in the US-EAST location - like
Yes, I am using one of the endpoints. Below a sample endpoint.
However, it connects and disconnects right away.
You will have to provide more details on your API/tools/language/framework etc.
Are you using the Python sample, if not can you please try the sample.
If this issue is happening with Python sample as well, then there is some infrastructure issue. Is there a proxy or firewall in the network. Is it configured to allow port 443, secure websocket protocol.
You can find Elektron WebSocket API Go examples in the Refinitiv/websocket-api example/go page. Please note that they are example for connecting to a local TREP server. I suggest you check the market_price_authentication.go which shows how to sends a login credential (EDP/RDP access token) with the login message.
The ERT in Cloud WebSocket API examples are in EDP(RDP) example GitHub page. They provides ERT in the Cloud WebSocket examples with C#, Java and Python languages for developers, so you need to apply the ERT in the Cloud logic from those example to your Go application.