Results 1 to 8 of 8

Hybrid View

  1. #1
    Member
    Join Date
    Apr 2009
    Location
    Setapak
    Posts
    2
    My case is in the other way round.

    After my client refresh the page (manually by clicking the refresh button on the browser), LS server only send me the last action for each key value only. For example, the flow of the data should start from

    1) send the add string to the browser (Command = add)
    2) update the data value multiple time (Command = update)


    After refresh, the LS server only send me the last update data value (Command=add).

    My javascript will check if the add string is provided, than only will add the data to the page, else will get the value and update, in this case, no data being add to display and the value update is not successfully done.

    Can please help to advice how and why this happen.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi David,

    In COMMAND mode for “Snapshot” it is intended the current state of the entire list, consisting of a set of itemEvents, one for each “key”.
    Note that the snapshot is not a playback of the commands received so far.

    So, it is the normal behaviour that you receive a "ADD" command with the last data values for each keys present in the Item at the moment of the snapshot request.

    Anyway in COMMAND mode you must always consider that data values are ​​sent with the "ADD" commands. Whatever the implementation of your adapter
    this can happen both in phase of snapshot request and in cases where the servrer must match multiple updates (an ADD with a subsequent UPDATE merged due to frequency or bandwidth limits for example).

    Hope that help.

 

 

Similar Threads

  1. Message in browser task bar
    By finodex in forum Client SDKs
    Replies: 1
    Last Post: June 6th, 2012, 10:32 AM
  2. How to send message to each client?
    By hungtt in forum Adapter SDKs
    Replies: 7
    Last Post: December 30th, 2010, 03:42 AM
  3. Replies: 1
    Last Post: January 18th, 2010, 03:27 PM
  4. Refresh browser problems
    By naitsir in forum Client SDKs
    Replies: 5
    Last Post: October 23rd, 2009, 01:49 PM
  5. Replies: 9
    Last Post: October 19th, 2009, 04:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 07:09 AM.