javascript - WebSocket HTML5 in the phonegap for android - Stack Overflow

I'm developing an HTML5 webapp which requires to use websocket,because the webapp needs to connec

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
Add a ment  | 

2 Answers 2

Reset to default 6

You 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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743735877a4498249.html

相关推荐

  • javascript - WebSocket HTML5 in the phonegap for android - Stack Overflow

    I'm developing an HTML5 webapp which requires to use websocket,because the webapp needs to connec

    17小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信