简体   繁体   English

客户端Socket.io的Java实现与1.0版兼容

[英]Java implementation for client Socket.io compatible with version 1.0

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个星期的时间,试图找到一个实现与v。1.0兼容的Socket.IO客户端的WORKING库。

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. 提到最相关的结果...到目前为止,我发现:1. https://github.com/nkzawa/socket.io-client.java我编译了(并非毫无困难)并试图链接到我的项目而没有成功因为它给了我无法解决的Emitter类错误。 2. https://github.com/Gottox/socket.io-java-client that is compatible till version 0.9 and seems no longer maintained. 2. https://github.com/Gottox/socket.io-java-client ,直到0.9版兼容,并且似乎不再维护。

Has anyone found an implementation working with v. 1.0(and has tried it)? 有没有人找到与1.0版一起使用的实现(并尝试过)? Or do you advice me to downgrade to versione 0.9? 还是您建议我降级到0.9版? Just to be more specific, I need it to keep the sync between my Android app and my server. 更具体地说,我需要它来保持Android应用程序与服务器之间的同步。

Thanks for your help! 谢谢你的帮助!

I had the exact same problem and I got nkzawa's solution working. 我遇到了完全相同的问题 ,我得到了nkzawa的解决方案。 You need to install quite a few dependencies if you aren't using Maven 如果您不使用Maven,则需要安装很多依赖项

Necessary: 必要:

Unnecessary: 不必要:

Also don't forget socket.io-client ! 也不要忘记socket.io-client

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM