-
February 22nd, 2013, 09:32 AM
#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
-
February 22nd, 2013, 02:21 PM
#2
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;
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 07:29 AM.
Bookmarks