-
January 4th, 2013, 09:29 AM
#2
In fact, Lightstreamer Server, after issuing a subscribe() request to the Data Adapter, takes care of keeping the item snapshot updated;
but as soon as clients are no longer interested, it issues a unsubscribe() request and quits keeping the item snapshot.
When eventually a new client connects, the Server will issue subscribe() again.
At this point, the Data Adapter will have the opportunity to send the current item snapshot to the Server.
So, if the Data Adapter also keeps the snapshot up-to-date on the items it manages, it can fill the gap.
Otherwise, the only option is to cheat the Server by adding a fake client which subscribes to the needed items and never quits.
This fake client can (and should) be run on the back-end side, but there is no special channel available to communicate with the Server:
it has to communicate in the same way as the other clients do, that is, by issuing request through the Server listening ports.
If you are using the Moderato edition, so that only the JavaScript Client Library is available, you could, for instance, write this fake client in NodeJS.
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 12:10 PM.
Bookmarks