Android Java套接字与Socket.IO通信
我正在编写一个消息应用程序。我的服务器是基于node.JS和socket.io构建的。我的客户端应该是一个Android应用程序。然而,我似乎找不到一个像样的库来为我提供 Socket.IO 的 Java 接口(通过 websockets?)。是否有一些图书馆存在?或者我是否必须求助于另一种解决方案(哪一个?)?
我找到了这个可可库: https://github.com/fpotter/socketio-cocoa。安卓有什么替代品吗?
谢谢!
I'm writing a messaging app. My server is built on node.JS and socket.io. My client should be an Android application. However, I can't seem to find a decent library that gives me a Java interface to Socket.IO (by way of websockets?). Is there some library that exists? Or do I have to fall back on another solution (which one?)?
I've found this library for cocoa: https://github.com/fpotter/socketio-cocoa. Any alternatives for Android?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
缺乏公认的答案。它们是 Java Socket.IO 实现,需要 netty,或者仅支持 WebSocket。我最终在轻量级 WebSocket 客户端之上编写了自己的 Socket.IO 客户端。
https://github.com/koush/AndroidAsync
The accepted answer was lacking. They are Java Socket.IO implementations, which require netty, or only had WebSocket support. I ended up writing my own Socket.IO client on top of a lightweight WebSocket client.
https://github.com/koush/AndroidAsync