Not getting rate update message from Websocket Api java example after approx 9 minutes (using git...

... web socket example)
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
-
Hi @deval.patil,
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 -
Thanks @steven.peng,@Gurpreet 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
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 626 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 83 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛