admin管理员组文章数量:1345077
I'm developing an HTML5 webapp which requires to use websocket, because the webapp needs to connect to a server(websocket server), all of this time, the webapp is working fine in a desktop browser-Chrome,
But now the web-app needs to be run in smartphones, and android will be the first priority (I don't have any experience developing android app), then I find a solution to build the web-app as an android-app using PhoneGap,
unfortunately, It doesn't support the websocket yet, I found many plugins but they all have their own server(java), what I need is a javascript library that will allow me to have the websocket run normally like it used to be in chrome, to any available ws server (I already made one in .NET using visual studio)
any idea or reference?
I'm developing an HTML5 webapp which requires to use websocket, because the webapp needs to connect to a server(websocket server), all of this time, the webapp is working fine in a desktop browser-Chrome,
But now the web-app needs to be run in smartphones, and android will be the first priority (I don't have any experience developing android app), then I find a solution to build the web-app as an android-app using PhoneGap,
unfortunately, It doesn't support the websocket yet, I found many plugins but they all have their own server(java), what I need is a javascript library that will allow me to have the websocket run normally like it used to be in chrome, to any available ws server (I already made one in .NET using visual studio)
any idea or reference?
Share Improve this question asked Mar 28, 2013 at 13:46 Eldon LesleyEldon Lesley 9356 gold badges20 silver badges39 bronze badges 1- Flash can open raw TCP connections. I don't how well android supports it, though. – freakish Commented Mar 28, 2013 at 13:48
2 Answers
Reset to default 6You can give https://github./mkuklis/phonegap-websocket a try. The demo app is here: https://bitbucket/mkuklis/phonegap-websocket-demo
Websockets are not natively supported in all android browsers. My best guess is to use an Phonegap plugin for websockets.
I suggest you take a look at https://github./FreakDev/PhoneGap-Android-HTML5-WebSocket or (an older) https://github./anismiles/websocket-android-phonegap
本文标签: javascriptWebSocket HTML5 in the phonegap for androidStack Overflow
版权声明:本文标题:javascript - WebSocket HTML5 in the phonegap for android - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743735877a2529999.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论