Closed hyichao closed 8 years ago
Finally i found out how to fix it... If you guys are trying to send binary data to netty-socketio as server, please remember to upgrade java from older version to Java1.8, since only Java1.8 supports binary well. Inside the source code, there is an Java native API that prevent older version java to parse binary. I'll close this issue myself
I currently meet the exact same problem in version 1.7.8 and JRE1.8 does not solve the problem
I use the latest socket.io-swift-client. But interestingly, everything is fine on iPhone 4, iPhone 5, but not on iPhone 6 and above. It sounds like a client-side problem, but I can't find any report on the socket.o-swift-client Github site.
Can anyone give me any feedback?
@PeterL1n could you try it with "master" branch version? There was some issue with packet length parsing https://github.com/mrniko/netty-socketio/commit/53d6bde2c381e648164effe8d49d71c6fcb29172
I am not quite familiar with Github system. What do you mean by master branch? 1.7.8 is not master branch?
Do you want me to directly embed the source code into my project?
@PeterL1n I mean sync with git@github.com:mrniko/netty-socketio.git build it drop in classpath and try again your case.
So I synced it, and imported as a maven project. Export it to a jar file. But the jar file does not include dependency. Is there any way to combine with Maven and automatically get the dependency?
Ok. Now I got the latest one running, but it still fails.
@PeterL1n Could you please try it again due to this https://github.com/mrniko/netty-socketio/pull/326 ?
Yes. Version 1.7.10 fixes the problem. Now I can send binary to the server. Big thanks :)
Perfect!
Hi,
Thank you for such a great project of socket.io. While using it, i got some problem. I'm using:
In the server side, i add a binary handler and a direct String handler as follows
In the client side, i emit as follows
and I got error message in the Java Server side
The message shows that String emit works well, and logging the information proves it. However the binary emit meets difficulties.
So, my Q is, is there any mistake that i have made while sending NSData as binary? All i got to do is to send NSData to the server side, what type of data class should i use in netty-socket.io?