-
January 15th, 2022, 02:58 PM
#1
Connection Issues
I have a project where I need to connect to a Lightstreamer server runing v7.0.3 3 and there is an issue with the client I am using, lightstreamer_ls-javase-client_4.3.0 (downgraded from v4.3.7 at the request of the support staff for the market I am connecting to).
When I attempt to subscribe to their server my application just doesn’t connect or subscribe in any way, without any error messages or exceptions thrown. The threads just seem to die out. Wireshark shows a successful handshake and session ID receipt. There is an extensive thread on Gain Capitals forum ensuring me that my connection details and subscription methods are correct:
http://faq.labs.gaincapital.com/topi...tion-problems/
I am unsure how to proceed from this point, any help you could provide would be greatly appreciated. See attached code for reference.
public void lightstreamerSubscription() { // TODO LIGHTSTREAMER LOGIN AND SUBSCRIPTION
String[] items = new String[forexComMarketList.length];
String[] fields = { "MarketId", "TickDate", "Bid", "Offer", "Price", "High", "Low" };
for (int i = 0; i < items.length; i++) { // MARKET item LIST BUILD LOOP
items[i] = String.join("", "PRICE.", forexComMarketList[i].marketID);
}
lsClient = new LightstreamerClient("https://push.cityindex.com/", "STREAMINGALL");
lsClient.connectionDetails.setUser(forexComClientD ata.personalEmailAddress);
lsClient.connectionDetails.setPassword(forexComCli entData.sessionToken);
lsClientListener = new LightstreamerClientListener();
lsClient.addListener(lsClientListener);
lsClient.connect(); // TODO FIND OUT WHERE THIS THREAD IS DYING
lsSub = new Subscription("MERGE", "PRICE.401484300", fields); // TODO REPLACE ARRAY
lsSub.setRequestedSnapshot("yes");
lsSub.setDataAdapter("PRICES");
lsSubscriptionListener = new LightstreamerSubscriptionListener();
lsSub.addListener(lsSubscriptionListener);
lsClient.subscribe(lsSub);
}
Similar Threads
-
By cleggink in forum Client SDKs
Replies: 0
Last Post: January 14th, 2022, 06:34 PM
-
By EricS in forum Client SDKs
Replies: 7
Last Post: January 24th, 2014, 09:25 AM
-
By Mone in forum Client SDKs
Replies: 0
Last Post: December 27th, 2006, 03:56 PM
-
By Alessandro in forum Client SDKs
Replies: 1
Last Post: October 30th, 2006, 04:53 PM
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: October 19th, 2006, 05:53 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 03:29 AM.
Bookmarks