gimite / web-socket-js

HTML5 Web Socket implementation powered by Flash
BSD 3-Clause "New" or "Revised" License
2.74k stars 490 forks source link

AIR Mobile support? #147

Open orthatg opened 10 years ago

orthatg commented 10 years ago

Could this library feasibly be modified to run in an AIR Mobile app or does this require the use of ExtInt? Thx

gimite commented 10 years ago

I'm not familiar with AIR mobile. In general, if you want to use the library from ActionScript, you can use WebSocket.swc which can be built with bundled flash-src/build.xml .

The ActionScript API is not documented. But you can use WebSocket class: https://github.com/gimite/web-socket-js/blob/master/flash-src/src/net/gimite/websocket/WebSocket.as This code shows how to use the class: https://github.com/gimite/web-socket-js/blob/master/flash-src/src/net/gimite/websocket/WebSocketMain.as

leefj commented 7 years ago

i use Netty and SecureSocket in my App. it works on iOS ,but not work on android . on android the SecureSocket.serverCertificateStatus value is invalid . does any body know how to solve this problem? and shat "user-permission" should config ?