...
- type - This defines the type of this document to be rendered by the Shindig. In this case, specify the type as gadget.
- data - This contains the URL of the location of the
index.xml
that corresponds to the gadget. - notify - This is the most important. This is the property that defines whether this gadget is a publisher or not. By adding this property we can define a channel to publish messages. In this sample, a channel named history is being created. The notify property has two sub properties which are as follows: type and description. The property named type is used to define the type of the publisher.
- listen - This property defines whether this specific gadget can subscribe to a channel or not. A listener named state has been created for this sample, which has the same properties that a publisher channel has. Type will filter the publisher channels that the gadget can listen to.
...