Open GoogleCodeExporter opened 9 years ago
There is another way to solve this problem:
Gadgets share localStorage and sessionStorage.
Each gadget instance can listen for the storage event and sync in real time. By
prefixing the storage keys with the wave's id and the gadget's name, you could
share state between gadget instances in a wave.
Original comment by celehner1
on 23 Jun 2010 at 5:36
Why you're supposing that gadgets states will be changed only by one user? And
all users will use HTML5 compatible browsers?
Original comment by fedor.in...@gmail.com
on 23 Jun 2010 at 5:37
If another user changes a gadget's state, your instance will get the state
update, and then can notify your other instances via localStorage.
I'm pretty sure that all the browsers that support the Wave client support
localStorage. As for the storage event the only one I'm not sure of is Firefox
3.0, but that could be worked around with polling.
Original comment by celehner1
on 23 Jun 2010 at 6:18
TBH I think the storage solution is the best idea for doing this so far.
(yeah, it won't work on some browsers. *shrug* if wave even _ran_ for those
browsers, it'd be so slow having the gadget not able to do real time sync
wouldn't be an issue anyway).
Original comment by Douglas....@gmail.com
on 24 Jun 2010 at 10:49
Issue 807 has been merged into this issue.
Original comment by pamela.fox
on 25 Jun 2010 at 1:04
Original comment by pamela.fox
on 25 Jun 2010 at 1:08
Original issue reported on code.google.com by
Douglas....@gmail.com
on 23 Jun 2010 at 7:39