hitrust / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
1 stars 0 forks source link

wave.getState().submitDelta() sends updates twice #623

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
After sending data from a gadget to Wave with submitDelta(), the data sent by a 
prior call to 
submitDelta() is sent right before the new data is sent, thus every update is 
sent twice.

A workaround is to add a timestamp to every submitDelta() and let your code 
check if it already 
received a callback with this timestamp so that you can ignore it.

Here is a post with more information I created on the Wave API mailing list, 
there is also someone 
who verified that this is happening because he noticed it too: 
http://groups.google.com/group/google-wave-api/browse_thread/thread/a69b1cc9bd8b
6c48

I only tested this in my Sandbox account.

Original issue reported on code.google.com by HaiColon on 15 Jan 2010 at 11:56

GoogleCodeExporter commented 9 years ago
Attached minimal gadget demonstrating this issue (from the groups thread above).

Original comment by Douglas....@gmail.com on 17 Jan 2010 at 1:43

Attachments:

GoogleCodeExporter commented 9 years ago
The design for this actually intention.  To state this simply, this model 
actually 
really fast state propagation without any delay on the server to collect all 
changes.  
But I understand the issue you are asking, so I am going to file this as a 
feature 
request.  Thanks.

Original comment by austin.c...@gmail.com on 20 Jan 2010 at 11:40