WAMP PubSub Client
This example implements a simple WAMP PubSub client. The client subscribes to a specific topic and upon receiving events on the subscribed topic, presents the received information.
For information on how to install AutobahnAndroid and get up and running, please check out the Get Started.
WAMP PubSub Server
Obviously, you will need a WAMP server that provides the PubSub topics and message brokering used by the client.
To make this easy, we have included a special mode with AutobahnTestsuite that provides an embedded WAMP server.
Setting up AutobahnTestsuite is easy. Here is a complete usage guide.
For the impatient, here is the quick install:
- Install Python
- Install setuptools
- easy_install autobahntestsuite
You can then start the embedded WAMP server by doing
wstest -d -m wampserver -w ws://localhost:9000
Open a browser on
You can open one or more browser windows/tabs to check out PubSub and also send events to the Android PubSub demo client (by pressing the middle button "Publish Event").
- Build and run the app.
- Enter the IP and port of your WAMP server.
- Press "connect".
The topic will be subscribed automatically and received event information is shown in popups.
For convenience, the app will remember the server IP/port as app settings.