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

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

问题描述

有近1星期我在浪费时间试图找到实现Socket.IO的客户端与V兼容工作的库。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. https://github.com/nkzawa/socket.io-client.java我编译(并不是没有困难的),并试图连接到我的项目没有成功,因为它给我的,我解决不了的发射器类的错误。  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(并且已经尝试过)?还是你建议我降级到versione 0.9?只是为了更具体,我需要让我的Andr​​oid应用程序,我的服务器之间的同步。

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

必要的:

  • engine.io-client
  • Java-Websocket
  • json

不必要的:

  • hamcrest-library
  • jsonassert
  • junit

另外不要忘记插座。 IO-客户

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

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