PubSub Example
An example demonstrating how to use CAXL's Client, PubSubController and PubSubNode classes to subscribe to and receive items from a forum
How it Works
This example automatically performs a number of actions in the page onReady event:
- Creating a jabberwerx.Client.
- Creating a jabberwerx.PubSubController for controlling the publish-subscribe.
The example also demonstrates (based on user actions like button clicks) additional PubSub functionality available within CAXL:
In Action
Instructions for using this example:
- Click the "Connect" button to connect the client to the server.
- Type in the name of an existing forum room and click the "Enter Forum" button to subscribe to the existing forum.
- Any items that are published to the forum will be displayed in the "Forum Items" area of this page.
***Note: You cannot publish with this example. Please use the PubSub Owner example in another browser in order to fully simulate the publish-subscribe behavior.