Hi flybyGWT,
I confirm you that the Lightstreamer JavaScript Client library already handles the process of update at Item level.
Please refer to this piece of code of our
GWT demo:
The event with which you are receiving an update is unique regardless of how many fields have changed for that Item. The object
ItemUpdate allows you to navigate between fields that have actually undergone a change of value. At that point, as you have already noticed, our demo calls for each of these fields a single event to update the GWT FlexTable.
To achieve your goal, you have to change this behavior, by updating your internal cache of the Item for every updated field and then passing to the CellTable the complete row with updated values.
Something like this:
By the way, I confirm you that the Lightstreamer server does not use JSON to send updates to the client, but a specific and optimized protocol.
Bookmarks