Results 1 to 2 of 2
  1. #1

    Checking Connection Status of LSClient


    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" ( Is there anything similar for the .NET-API?

    Thank you very much in advance

  2. #2
    Join Date
    Feb 2012
    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.




Similar Threads

  1. Broadcast client connection status to others
    By tvhnet2013 in forum General
    Replies: 2
    Last Post: October 9th, 2013, 01:00 PM
  2. The connection status shows CONNECTING
    By Victor Yew in forum Client SDKs
    Replies: 4
    Last Post: May 29th, 2013, 06:15 AM
  3. Connection status, CONNECTING, doesn't change
    By mr_gray in forum Client SDKs
    Replies: 5
    Last Post: December 20th, 2010, 02:37 PM
  4. Firefox 1.0 - --> Status bar issue
    By Mone in forum Client SDKs
    Replies: 0
    Last Post: November 7th, 2006, 12:24 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
All times are GMT +1. The time now is 07:32 PM.