简体   繁体   English

netty-socketio xhr-polling回归?

[英]netty-socketio xhr-polling regression?

Last week i decided to upgrade my version of mrniko netty-socketio from version the old version 1.0.0 to the newest 1.5.2, i upgraded old dependencies too. 上周,我决定将mrniko netty-socketio的版本从旧版本1.0.0升级到最新的1.5.2,我也升级了旧的依赖项。

But now xhr-polling doesn't work, and if i run my old project using 1.0.0 version everything is working fine ! 但是现在xhr-polling无法正常工作,如果我使用1.0.0版本运行旧项目,则一切正常!

(i use the 9.1.16 socket.io.client) (我使用9.1.16 socket.io.client)

The process is : 过程是:

On the client (javascript) : 在客户端(javascript)上:

mServer.on('connect', function() {
    mServer.emit("CON", "HELLO");               
};

Here my server receive the event, but when i respond to the client (version 1.5.2) : 我的服务器在这里收到事件,但是当我响应客户端(版本1.5.2)时:

mSocketIOClient.sendEvent("EVENT", "TEXTDATA");         

The client receive nothing ! 客户什么都收不到!

I have try with different browser on desktop and android, and this problem only appears when i use the version 1.5.2 of mrniko socketio. 我尝试在台式机和Android上使用其他浏览器,并且仅在我使用mrniko socketio的1.5.2版本时出现此问题。

I have force using xhr-polling with the parameters on client side : 我不得不在客户端使用xhr-polling和参数:

transports: ['xhr-polling']});              

Thanks ! 谢谢 !

EDIT : Now i tried every version from 1.0.0 to 1.5.3-SNAPSHOT and no one is functionnal with xhr-polling. 编辑:现在我尝试了从1.0.0到1.5.3-SNAPSHOT的每个版本,并且没有人使用xhr-polling。

The only version where the client receive an event through XHR-polling is the 1.0.0-SNAPSHOT. 客户端通过XHR轮询接收事件的唯一版本是1.0.0-SNAPSHOT。

The mysterious thing is that the server receive the data emitted by the client throught javascript emit function, but when the server respond with sendEvent() the client doesn't receive an empty message 3:: 神秘的事情是服务器通过javascript发出函数接收到客户端发出的数据,但是当服务器使用sendEvent()进行响应时,客户端不会收到空消息3 ::

I continue my investigation ! 我继续调查!

I just fixed it. 我刚刚修好了。 Could you please test it on current 1.5.5-SNAPSHOT verison? 您能在当前的1.5.5-SNAPSHOT版本中对其进行测试吗?

UPDATED : fixed in 1.6.0 version 更新 :在1.6.0版本中修复

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

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