-
July 27th, 2007, 09:06 AM
#2
Hello,
The Data adapter should give the initial snapshot only as the first client subscribes to a certain item (the subscribe method is called on the DataAdapter). After than, until there is at least 1 client subscribed to that item the snapshot is completely handled by Lightstreamer. When no more clients are subscribed to that item the unsubscribe method is called on the DataAdapter. On the next subscription to that item the DataAdapter should send the snapshot events (the subscribe method is called again).
Client 1 subscribes to item1 -> The DataAdapter sends the intial snapshot
Client 2 subscribes to item1 -> Lightstreamer sends the initial snapshot
Client 1 unsubscribes from item1
Client 3 subscribes to item1 -> Lightstreamer sends the initial snapshot
Client 2 unsubscribes from item1
Client 3 unsubscribes from item1
[no more clients subscribed to item 1]
Client 4 subscribes to item1 -> The DataAdapter sends the intial snapshot
And so on...
In conclusion you should just send the snapshot any time the subscribe method is called for an item on the DataAdapter.
Similar Threads
-
By wwatts in forum Client SDKs
Replies: 3
Last Post: October 2nd, 2012, 10:40 AM
-
By LS_Developer in forum General
Replies: 3
Last Post: March 14th, 2012, 02:46 PM
-
By vaduganathan in forum Adapter SDKs
Replies: 8
Last Post: December 16th, 2010, 03:15 PM
-
By patilgkk in forum General
Replies: 5
Last Post: August 2nd, 2010, 09:04 AM
-
By patilgkk in forum Adapter SDKs
Replies: 3
Last Post: June 3rd, 2010, 10:27 AM
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 03:30 PM.
Bookmarks