You can also use pubsub2 to send async messages. There's a good example of gadget-to-gadget pubsub in the Shindig samples [1][2]. It works similarly for container-to-gadget and gadget-to-container pubsub.
[1] https://svn.apache.org/repos/asf/shindig/trunk/content/gadgets/sample-pubsub-2-publisher.xml [2] https://svn.apache.org/repos/asf/shindig/trunk/content/gadgets/sample-pubsub-2-subscriber.xml On Tue, Mar 4, 2014 at 8:49 PM, Ryan Baxter <[email protected]> wrote: > You can use gadgets.rpc.call to call from the container to the gadget > and gadgets.rpc.register to register a function to handle the call. > There is a good example in the selection feature [1] [2]. > > [1] > https://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/selection/selection.js > [2] > https://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/selection/selection_container.js > > On Tue, Mar 4, 2014 at 3:28 PM, Wade Girard <[email protected]> > wrote: > > I think I'm missing something... how does the gadget get notified of > something from the container? > > > > Asked a different way, how can I have the container call a method in the > gadget? > > > > Thanks > > -- > > Wade Girard | Principal Software Engineer > > Calabrio, Inc. | 400 1st Avenue N, Ste 300 | Minneapolis, MN 55401 > > Phone: 763.795.7798 >
