Java socket.io client

前端 未结 6 720
醉梦人生
醉梦人生 2020-11-30 19:38

Is there any Socket.IO-client available for Java? So far I have only found the official Socket.IO client which is only available for JavaScript and socket.io-java which is o

6条回答
  •  醉梦人生
    2020-11-30 20:21

    Take a look at http://techdroid.kbeanie.com/2011/03/websockets-on-android.html. I only needed the WebSockets, so I stripped out the WebView part as well, the Factory was superfluous also. You can just get away with using https://github.com/anismiles/websocket-android-phonegap/blob/master/src/com/strumsoft/websocket/phonegap/WebSocket.java and implement the SocketIO specifcs yourself.

提交回复
热议问题