Hi All, i’m new to Android and websockets, trying to get started with the websocket echo example. I have managed to set up the autobahn python websocket server, and got the browser example to work (i.e. browser connects to local websocket server and echo back to console).
I am getting stuck in the Autobahn android getting started example, not able to “receive opening handshake”. My log shows the following:
WS reader created and started
D/de.tavendo.autobahn.WebSocketConnection: WS writer created and started
The next log step (as per the getting started tutorial) is: “opening handshake received”. But my code never gets to this point.
Any suggestions for how to solve this are much appreciated.
I am running OS X v10.8.4, Python 2.7.5, Autobahn v0.5.14 (set up with easy_install, tried upgrade, but does not upgrade to 0.5.2), and Android Studio.
The IP address of my websocket server is ws://localhost:9000. This is the only thing i have changed in the Android sample code.