netty-socketio icon indicating copy to clipboard operation
netty-socketio copied to clipboard

Which client version is supported?

Open KevinAtlans opened this issue 4 years ago • 15 comments

<dependency> <groupId>com.corundumstudio.socketio</groupId> <artifactId>netty-socketio</artifactId> <version>1.7.22</version> </dependency>

Which client version does the server 1.7.22 support at most?

"socket.io-client": "^2.5.0" ? "socket.io-client": "^3.1.3" ? "socket.io-client": "^4.5.2" ?

I can only use 2.5.0

Can 4.5.2 be used? Can you give me an example if you can?

Pls tell me. Thx

KevinAtlans avatar Sep 23 '22 09:09 KevinAtlans

顶

chlp1055378613 avatar Sep 26 '22 12:09 chlp1055378613

If you don't care about the minor encoding mechanism for binary body, you can give it a try now using the latest version of socketio client. I only fix the reversing of ping/pong mechanism: https://github.com/mrniko/netty-socketio/pull/858

NeatGuyCoding avatar Sep 29 '22 07:09 NeatGuyCoding

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

chlp1055378613 avatar Sep 29 '22 07:09 chlp1055378613

I have the same question too. And I've tried to use the latest socket.io-client 4.5.2 but then I got this error from the "connect_error" event: It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/). Please let me known if you have the solution.

jptangchina avatar Sep 29 '22 10:09 jptangchina

I have the same problem, not able to connect using socket.io-client v3.x or v4.x, but seems to work with v2.x

akshayrpatel avatar Oct 16 '22 21:10 akshayrpatel

I have the same problem. using the latest api and still not support client v3&4 image

BanDaosc avatar Oct 21 '22 07:10 BanDaosc

It seems we can only use socketio 2.x version for out client. It really sucks and frustrats me.

yisuren avatar Nov 09 '22 12:11 yisuren

Is there a good way to solve this problem for Java?

ZhouShengEn avatar Nov 22 '22 02:11 ZhouShengEn

At the moment only 2.x version is supported

mrniko avatar Nov 22 '22 10:11 mrniko

Any plans to support newer versions @mrniko? Or do we have at least which changes are required to?

rfermontero avatar Dec 07 '22 09:12 rfermontero

1.0.1 and 1.0.2 java clients are compatible with 1.7.22 but this server has disconnect issue. Server 1.7.8 is working fine as of now.

faizanhaidarkhan avatar Dec 15 '22 06:12 faizanhaidarkhan

@rfermontero

Sorry, no plans so far.

mrniko avatar Dec 15 '22 10:12 mrniko

1.0.1 和 1.0.2 java 客户端与 1.7.22 兼容,但此服务器存在断开连接问题。服务器 1.7.8 目前运行良好。

Any plans to support newer versions @mrniko? Or do we have at least which changes are required to?

you can try to change transport to websocket

ZhouShengEn avatar Dec 15 '22 11:12 ZhouShengEn

在 com/corundumstudio/socketio/protocol/PacketEncoder.java:298 位置加一个sid的json字符串即可解决客户端这个报错: connect_error Error: It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible

kevinfubei avatar Apr 26 '23 02:04 kevinfubei

4.0 https://github.com/mrniko/netty-socketio/pull/897

mrniko avatar May 14 '23 07:05 mrniko