-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebSocket server fails to properly handle hexadecimal data from clients #1429
Comments
I will check this when I get back home but I can tell you there is a 99% chance the issue is in your own code, not the library. Please post your implementation of |
This is my byteArrayToHexString method |
OK,I konw.This problem has been bothering me for a week. My solution is:
The version I am using is implementation group: 'org. java websocket', name: 'Java-WebSocket', version: '1.5.6' |
Interesting, I would consider this a bug in the library. I noticed there are some inconsistencies with how ByteBuffer position/limit is handled by different functions, I guess we should go over API functions and add documentation or fix them. |
Describe the bug
I have encountered an issue with my Android WebSocket server where it fails to correctly handle hexadecimal data sent from clients.
When running the Android WebSocket server and subsequently starting Python to send socket messages, the sent and received data do not match.
The text was updated successfully, but these errors were encountered: