Results 1 to 4 of 4
  1. #1
    tarbhjohnnydick
    Guest

    .Net Client Question

    HI,

    What do I need to specify connect to the frame on www.lightstreamer.com using the DotNetClientStockDemo project?

    I notice that the url 'createsession.txt' is coded in there. What's wrong with changing that to .js? Also, I have the following parameters in the 'connInfo':

    ConnectionInfo connInfo = new ConnectionInfo();
    connInfo.Adapter = "DEMO";
    //connInfo.Constraints = ;
    //connInfo.ContentLength = ;
    //connInfo.EnableStreamSense = ;
    //connInfo.KeepaliveMillis = ;
    //connInfo.Password = ;
    //connInfo.Polling = true;
    //connInfo.PollingIdleMillis = 30000;
    //connInfo.ProbeTimeoutMillis = ;
    //connInfo.ProbeWarningMillis = ;
    //connInfo.PushServerControlUrl = ;
    //connInfo.PushServerUrl = ;
    //connInfo.ReconnectionTimeoutMillis = ;
    //connInfo.StreamingTimeoutMillis = ;
    //connInfo.User = ;
    connInfo.PushServerUrl = pushServerUrl;

    What else do I need to specify to connect to this data in the same was as the browser does by doing the following two posts:

    LS_phase=9802&LS_domain=lightstreamer.com&LS_polli ng=true&LS_polling_millis=0&LS_idle_millis=0&LS_cl ient_version=4.4&LS_adapter_set=DEMO&

    LS_phase=9804&LS_domain=lightstreamer.com&LS_polli ng=true&LS_polling_millis=0&LS_idle_millis=30000&L S_client_version=4.4&LS_adapter_set=DEMO&LS_old_se ssion=S71fc1ac7afc26625T3916805&

    Thanks in advance.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    518
    Hi,

    Lightstreamer Servers speaks two different protocols when talking to JavaScript clients and to all the other clients. So, the .NET Client library uses a text-based protocol, which is fully documented in the "Lightstreamer\DOCS-SDKs\sdk_client_generic\doc\Network Protocol Tutorial.pdf" document. On the other hand, the JavaScript-based protocol is implemented in the Web Client library and is not documented.

  3. #3
    Member
    Join Date
    Aug 2010
    Location
    Sydney
    Posts
    5

    Web Client protocol in .NET client

    Is there any way for a .NET client to connect using the Web Client (JavaScript) protocol?

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784

 

 

Similar Threads

  1. Replies: 4
    Last Post: February 5th, 2009, 12:45 AM
  2. Replies: 0
    Last Post: January 10th, 2007, 05:03 PM

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 10:18 AM.