Results 1 to 8 of 8

Hybrid View

  1. #1
    Senior Member
    Join Date
    Oct 2009
    Location
    cbba
    Posts
    33
    Hi Dario, thanks for you reply,
    the message is a simple string, at any time (that is not relevant) my LS server send a string to the subscriptor.
    on the browser, my app (javascript code) catch the message (the string) and compares it with another string, if the comparison is true my app tells the browser to reload ( window.location.reload(true); )
    heretofore work as want to work
    the problem is that when the browser reconnects to my LS server (after reload), the LS server send the message again, and my app compares the string again and tells the browser to reload.
    this is done indefinitely :S

    why the LS server again sent the last message to the subscriptor, when the subscriptor reload the browser??
    is this a normal behavior?
    how can i fix this problem??

    thanks for your help
    naitsir

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    It seems to me that the second one of my previous hypothesis holds: you refer to an update for some item.
    I confirm that the only reason why Lightstreamer Server should send the same update multiple times is that the item has been subscribed to by requesting the snapshot.
    When the browser reloads the page, the page probably issues some subscriptions immediately, so it immediately receives the snapshots related with the subscribed items, that may consist in the latest update received.
    So, please check the way your application performs its subscriptions; if any snapshots are requested, you should consider removing the request, depending on the meaning of your items.

  3. #3
    Senior Member
    Join Date
    Oct 2009
    Location
    cbba
    Posts
    33
    Thanks Dario,
    I will check how to set to the settings that the browser not request a snapshot. but if you could tell me where I do this, you save me time.
    Regards,
    Naitsir

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    The snapshot is requested through a call to setSnapshotRequired, so you should find it easily in your Push-Page.
    The call operates at Table level, hence it applies to all items in the Table.

 

 

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 12:55 AM.