-
February 12th, 2010, 03:20 PM
#1
Hi,
first of all, about the 1st point, in case you didn't, you should implement the getItems method of your MetaDataProvider to prevent an user to subscribe to another user's item.
that said, about your problem, it seems to me that you're trying to accomplish a system that receives a list of messages from the server. For such logic you cannot use the MERGE mode as when two updates for the same item are published quickly one after the other it is likely that only he second will reach the client as the first one is MERGEd with the other.
To publish a list of messages avoiding merge you would use a DISTINCT subscription (eg ChatDemo ). For further details check out the "General Concept.pdf" file (section 3.1) available under LS_HOME/DOCS-SDKs/ in our distribution.
About why your updates don't reach the client, I see that you use two tables but you subscribe both with the same id (the second parameter of the addTable: instancesAndSecuritiesTable). This way the second addTable make the first table to unsubscribe.
If that's not the problem, and if possible, we should start taking a look to your server logs. Please set the LightstreamerLogger.push category to log at TRACE level (and keep LightstreamerLogger.requests at INFO level). Then run your client and send us the log
-
April 9th, 2010, 01:30 PM
#2
Hi,
does merge appear if two the messages are different? For example: "message11112" and "message11113"
-
April 12th, 2010, 09:54 AM
#3
it depends on the time between the generation of the two messages and the frequency of the updates (see setRequestedMaxFrequency and the comment of the <max_delay_millis> and <max_buffer_size> elements in the server configuration file).
-
July 10th, 2010, 06:33 AM
#4
Hi Friends, I am Cine and I have read your site in a very deep and I would like to appreciate you on this brilliant effort. You have provided some thing so much different that I can't have words for thanks.
-
July 12th, 2010, 10:12 AM
#5
Dear Cine,
Thanks for your compliments! We rely on feedback from our users to keep improving.
Cheers,
Alessandro
Similar Threads
-
By pradeepgamage in forum General
Replies: 1
Last Post: January 9th, 2012, 11:39 AM
-
By rd2008 in forum Client SDKs
Replies: 8
Last Post: February 11th, 2009, 12:13 PM
-
By lucab617 in forum Adapter SDKs
Replies: 5
Last Post: May 19th, 2008, 03:16 PM
-
By tuongkha in forum Adapter SDKs
Replies: 4
Last Post: January 15th, 2008, 09:15 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 04:31 AM.
Bookmarks