added cordova support to apisocket.py