-
September 18th, 2007, 10:18 AM
#5
Originally Posted by
TonyRoberts
I still don't get the event being fired that I described originally, though.
As a first step, may you please check that you are not referring to a later jsdoc?
Note that "onStart" was introduced in Web Client Library quite recently (version 4.1 build 1261).
About the snapshot, note that, indeed, any update event for an item (let's call it ITEM) sent by the Data Adapter before ITEM is ever subscribed to (i.e. before the first client subscribes to ITEM) is ignored.
All updates for ITEM coming from the feed before the subscription should be kept by the Data Adapter; then, upon the subscription, they can be sent by the Data Adapter to the Server as the item snapshot.
Alternatively, the Data Adapter should, in turn, ask its feed for updates for ITEM only upon the subscription; at that moment, it could also ask the feed for the current item state and send it as the snapshot.
In both cases, the Server forwards this snapshot to the first client; then it takes care of managing the snapshot for the subsequent clients.
This requirement may complicate the Data Adapter somewhat. However, your tests already include a workaround for this. If you can subscribe to ITEM from a dummy client when the item state is still empty, then your Data Adapter can always send an empty snapshot and just forward the updates to the Server, which will produce suitable snapshots for ITEM for the real clients.
Dario
Similar Threads
-
By chanro4 in forum Client SDKs
Replies: 5
Last Post: December 23rd, 2010, 08:34 AM
-
By phancongphuoc in forum Adapter SDKs
Replies: 1
Last Post: December 16th, 2010, 07:57 AM
-
By mnenchev in forum General
Replies: 3
Last Post: November 25th, 2009, 02:27 PM
-
By rd2008 in forum Client SDKs
Replies: 8
Last Post: February 11th, 2009, 12:13 PM
-
By deltron0 in forum Client SDKs
Replies: 2
Last Post: May 15th, 2008, 09:25 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 05:47 AM.
Bookmarks