-
Notifications
You must be signed in to change notification settings - Fork 6
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
Server response decode error? #3
Comments
Simulate client request data ioGameSimpleOne/src/main/java/com/iohao/one/example/client/DemoClient.java Lines 31 to 46 in e898ecb
or see iohao/ioGame#312 |
I just downloaded the demo of JS client at https://github.com/iohao/ioGameExamples/tree/main/SimpleExample/example/example-codec-json/src/main/resources/WEB-INF/static and ran it. It seems not working. |
When I get response by command 1-1 from server, the expected result like:
jackson, hello, jackson !
But when I decoded from byte array from response server:
[8, 1, 16, 0, 24, 129, 128, 4, 32, 0, 50, 27, 10, 25, 106, 97, 99, 107, 115, 111, 110, 44, 32, 104, 101, 108, 108, 111, 44, 32, 106, 97, 99, 107, 115, 111, 110, 32, 33, 56, 3]
It cannot decode look like response, actual seem add some symbols:
Here is some script to decode this:
The text was updated successfully, but these errors were encountered: