Example for Cordova WebSocket Plugin, https://github.com/mkuklis/phonegap-websocket