Not getting rate update message from Websocket Api java example after approx 9 minutes (using git we
We are using your example code from https://github.com/thomsonreuters/websocket-api/blob/master/Applications/Examples/EDP/java/MarketPriceEdpGwAuthentication.java to consume Websocket Api , but we have noticed that application stops receiving rate update messages after aprox 9 minutes everytime, and then we have to restart application(above java example) and it again starts receiving update messages from Web Socket Api , mean time java application sends token refresh request and receives access token and keeps running for stipulated time frame .
Best Answer
-
I just ran the same example from both ASW instance and my local server directly. Both ran fine and continued receive updates for over 30 minutes. We will need some more information to diagnose your issue:
- Where were you running your test? from AWS or local host directly?
- What user name you used? Does it has the format of GE-X-XXXXXXXX-X-XXX?
- How often the app received the update? "/TRI.N" is a delayed RIC and the app should receive one update every minute.
- Did the app receive the PING message and responded with PONG properly every 20 seconds even when there is no update messages?
- Did the app send the token refresh request every 4 1/2 minutes (270 seconds)?
If possible, please provide the screen shot of the app when you think it stopped to receive the message.
Also, it will help if you add websock onDisconnected and onSendError event call backs in the connect instance. It will provide some more information when the websocket disconnected:
public void onDisconnected(WebSocket websocket, WebSocketFrame serverCloseFrame, WebSocketFrame clientCloseFrame, boolean closedByServer) throws JSONException {
System.out.print("WebSocket disconnected by ");
if (closedByServer)
System.out.println("Server: " + serverCloseFrame.getCloseReason());
else
System.out.println("Client: " + clientCloseFrame.getCloseReason());
System.exit(1);
}
public void onSendError(WebSocket websocket, WebSocketException cause, WebSocketFrame frame) throws JSONException {
System.out.println("WebSocket Send Error:" + cause );
System.exit(1);
}Thanks.
0
Answers
-
Just finished the same test with both Java and Python examples and did not see any disconnects or interruption in data flow after 10 minutes.
Can you -
1. Confirm the hostname of EDP server where you are connecting
2. Verify that you have a direct route to internet. Some proxy servers can interrupt long running connections. To verify this, can you please try the example from a different network or home and confirm.
0 -
steven.pengGurpreet. for your quick reply and it was helpful.
After analyzing our current code a bit, we have noticed a change required in our logic with login . Now rates our flowing continuously.0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 370 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛