javascript - phonegap websocket doesn't work -



javascript - phonegap websocket doesn't work -

ok have tried in every way set phonegap-websocket plugin in phonegap project , there's no way work. had install plugin explained in page here, seems plugin correctly installed, if launch cordova plugin list appears, have added plugin in config.xml too, have added src cordova_plugin.js , cordova.js file in index.html, have build app , add together simple script in index.html

js var ws=new websocket("ws://echo.websocket.org"); ws.onopen=function(){ alert('open') ws.send('hi') } ws.onmessage=function(){ alert('hello') }

if set alerts before,between or after 2 methods cellphone test app, appears, ones within methods not, didn't work, if know why appreciate explanation.

i'll write reply merit must go dawson london, project write work right need launched after device ready.

javascript android cordova websocket phonegap-plugins

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -