changed to using sockets on Android instead of web sockets