-
November 23rd, 2015, 12:03 PM
#1
Checking Connection Status of LSClient
Hi,
To receive live prices from our broker I am using a C# interface to connect to the Lightstreamer server. Unfortunately, there are from time to time connection errors (such as "Session not found", "No data from server", "existing connection was forcibly closed by the remote host").
Although I catch these errors and try reconnects, I would like to request the current connection status of LSClient from time to time to 100% ensure my connection is fine. Is there any way to do that?
For the JavaScript-API there seems to be the method "getStatus" (http://www.lightstreamer.com/docs/cl...html#getStatus). Is there anything similar for the .NET-API?
Thank you very much in advance
-
November 25th, 2015, 08:59 AM
#2
Hi Dario,
I confirm that in the current .Net library there is no the equivalent of the getStatus() method.
However, by implementing all the methods of the IConnectionListener interface your app should be fully informed on all the transitions that the session with the Lightstreamer server undergoes.
Please also refer to the very simple implementation we provide in our demo (StocklistConnectionListener.cs).
Anyway I can anticipate you that we are working to provide a common interface for all development environments, the Lightstreamer Unified Client API model, which was first introduced with the JavaScript client API.
Regards,
Giuseppe
Similar Threads
-
By tvhnet2013 in forum General
Replies: 2
Last Post: October 9th, 2013, 12:00 PM
-
By Victor Yew in forum Client SDKs
Replies: 4
Last Post: May 29th, 2013, 05:15 AM
-
By mr_gray in forum Client SDKs
Replies: 5
Last Post: December 20th, 2010, 01:37 PM
-
By Mone in forum Client SDKs
Replies: 0
Last Post: November 7th, 2006, 11:24 AM
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 10:34 PM.
Bookmarks