客户端 Socket.io 的 Java 实现与版本 1.0 兼容 [英] Java implementation for client Socket.io compatible with version 1.0

查看:57
本文介绍了客户端 Socket.io 的 Java 实现与版本 1.0 兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了将近 1 周的时间试图找到一个 WORKING 库来实现与 v. 1.0 兼容的 Socket.IO 客户端

It is almost 1 week that I am wasting time trying to find a WORKING library that implements the client side of Socket.IO compatible with v. 1.0

仅提及最相关的结果...到目前为止我发现:1. https://github.com/nkzawa/socket.io-client.java 我编译(并非没有困难)并尝试链接到我的项目但没有成功,因为它在 Emitter 类上给了我一个我无法解决的错误.2. https://github.com/Gottox/socket.io-java-client 一直兼容到 0.9 版本,似乎不再维护.

Mentioning just the most relevant results...so far I found: 1. https://github.com/nkzawa/socket.io-client.java which I compiled (not without difficulties) and tried to link to my project without success since it gives me an error on the Emitter class that I couldn't solve. 2. https://github.com/Gottox/socket.io-java-client that is compatible till version 0.9 and seems no longer maintained.

有没有人找到一个使用 v. 1.0 的实现(并且已经尝试过)?还是建议我降级到 0.9 版?更具体地说,我需要它来保持我的 Android 应用和我的服务器之间的同步.

Has anyone found an implementation working with v. 1.0(and has tried it)? Or do you advice me to downgrade to versione 0.9? Just to be more specific, I need it to keep the sync between my Android app and my server.

感谢您的帮助!

推荐答案

我有 完全相同的问题,我得到了nkzawa的 解决方案有效.如果你不使用Maven,你需要安装相当多的依赖

I had the exact same problem and I got nkzawa's solution working. You need to install quite a few dependencies if you aren't using Maven

必要的:

不必要的:

另外不要忘记socket.io 客户端

这篇关于客户端 Socket.io 的 Java 实现与版本 1.0 兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆