简体   繁体   中英

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.

But now xhr-polling doesn't work, and if i run my old project using 1.0.0 version everything is working fine !

(i use the 9.1.16 socket.io.client)

The process is :

On the client (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) :

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.

I have force using xhr-polling with the parameters on client side :

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.

The only version where the client receive an event through XHR-polling is the 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::

I continue my investigation !

I just fixed it. Could you please test it on current 1.5.5-SNAPSHOT verison?

: fixed in 1.6.0 version :在1.6.0版本中修复

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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