Results 1 to 2 of 2
  1. #1

    Long/Smart Polling LightStreamer server-side <-> desktop

    Hello LightStreamers,
    Where can I find examples for LONG/SMART-POLLING clients?
    Would be challenging to start from scratch due to specific (excellent!) API.

    http://www.lightstreamer.com/demos

    Regards

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    We consider the use of smart polling just as the last resort for scenarios in which streaming is not feasible;
    hence, we expect that only Lightstreamer client libraries may decide, upon specific cases, to open a polling session.
    This is why we haven't provided examples of polling client.

    Anyway, forcing polling is admitted and, in fact, any example client can demonstrate a polling client if you modify it order to force the use of a polling session.
    Sticking to the java SDK, this consists in adding one line to the source code of the included example demo and recompiling it.
    To resume:
    • the example is in the DOCS-SDKs\sdk_client_java_se\examples\Swing_StockListDe mo folder;
    • the involved source file is src\javasedemo\swing\stockFeed.java;
    • after the creation of the cInfo object and before the use, you should add the following line:
      cInfo.isPolling = true;

 

 

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:38 AM.