PubSub Owner Example
An example demonstrating how to create/delete nodes and publish items.
How it Works
This example automatically performs a number of actions in the page onReady event.
- Creating a jabberwerx.Client.
- Creating a jabberwerx.PubSubController to create/delete nodes and publish items.
The example also demonstrates (based on user actions like button clicks) additional PubSub Owner functionality available within CAXL:
In Action
Instructions for using this example:
- Click the "Connect" button to connect the client to the server.
- Enter a node name and click the "Create Node" button to create a new node on the PubSub service.
- Enter item text and click the "Publish Item" button to publish the text.
- Click the "Delete Node" button to delete the current node and all of its items from the PubSub service.
***Note: This example works in tandem with the PubSub Example. Nodes created and items
published within this example are displayed and updated within the PubSub example.