Results 1 to 2 of 2
  1. #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

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    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

  1. Broadcast client connection status to others
    By tvhnet2013 in forum General
    Replies: 2
    Last Post: October 9th, 2013, 12:00 PM
  2. The connection status shows CONNECTING
    By Victor Yew in forum Client SDKs
    Replies: 4
    Last Post: May 29th, 2013, 05:15 AM
  3. Connection status, CONNECTING, doesn't change
    By mr_gray in forum Client SDKs
    Replies: 5
    Last Post: December 20th, 2010, 01:37 PM
  4. Firefox 1.0 - 1.5.0.7 --> Status bar issue
    By Mone in forum Client SDKs
    Replies: 0
    Last Post: November 7th, 2006, 11:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 05:59 PM.