DescriptionPreliminary support for using OpenAjax Hub as a pubsub mechanism for OpenSocial/Shindig. See http://wiki.opensocial.org/index.php?title=PubSub.next_Proposals for proposal.
New feature is simply named "pubsub-2".
This patch contains several files (OpenAjax-mashup.js, iframe.js, crypto.js) from an OpenAjax Hub branch, which uses Shindig RPC as the underlying transport layer for the Hub pubsub features.
Due to the way OpenAjax Hub works, I needed to know in shindig-container.js whether a gadget requires the "pubsub-2" feature and if so use the Hub code to create the iframe. I wasn't sure what the best way to integrate that into shindig-container.js, so I just did it the easy way. This definitely needs work.
Also, as per the discussion in the proposal linked above, the gadget side pubsub-2 API is accessible from a gadget instance object. For lack of a better place, I just put it in util.js.
Patch Set 1 #Patch Set 2 : wiring metadata #Patch Set 3 : Make sure relayUrl is absolute #Patch Set 4 : Add security features to RPC #
Total comments: 28
Patch Set 5 : Fixes, move 'pubsub-2' feature to 'extras' #
Total comments: 3
Patch Set 6 : Remove 'gadgets.byId()', change 'pubsub-2' from instance- to static-based API #Patch Set 7 : Alternative, cleaner shindig-container.js #Patch Set 8 : Remainder patch #Patch Set 9 : Prefix RPC security error enums; samplecontainer.js fix; small Hub code update #MessagesTotal messages: 22
|