apache / incubator-weex-site

Apache Weex (Incubating)
Apache License 2.0
87 stars 362 forks source link

【webSocket & HELP】How to use webSocket on Android? #505

Closed Moon1102 closed 5 years ago

Moon1102 commented 5 years ago

The document (https://weex.apache.org/zh/docs/modules/websockets.html#websocket-2) mentions that on Android, we should implement an adapter by ourselves, but file link was dead(404 not found).Then I search all github but result of keyword DefaultWebSocketAdapter was not found.

And when I try demo(http://dotwe.org/vue/5726b11ba5a4279a2f221650dfcf9e69) on PC,it works well,but copy all code to my project and run it on Android phone,no response. Whatever I use code style like websocket.onopen = ()=>{ xxx } or websocket.onopen(()=>{ xxx })

It make me a little confused. Anyone can help me? I'll appreciate.

YorkShen commented 5 years ago

There is a project refactoring, which cause the 404. I have updated the site. https://github.com/apache/incubator-weex-site/pull/534

FYI: You can alwasy ask question in mailing list, where pepole will answer you in time.