This example implements a simple WebSocket client that send message to a WebSocket server which is supposed to echo back the message. The message is then shown in a popup.
For information on how to install AutobahnAndroid and get up and running, please check out the Get Started.
When you don't have a WebSocket echo server around, you can use the WebSocket Echo example provided with AutobahnPython.
cd scm/AutobahnPython/examples/websocket/echo
python server.py
- Build and run the app.
- Enter the IP and port of your WebSocket echo server.
- Press "connect".
- Enter your message and press "send".
For convenience, the app will remember the server IP/port as app settings.