Skip to content
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

Short messages are unable to be parsed #51

Open
JasXSL opened this issue Jan 17, 2018 · 0 comments
Open

Short messages are unable to be parsed #51

JasXSL opened this issue Jan 17, 2018 · 0 comments

Comments

@JasXSL
Copy link

JasXSL commented Jan 17, 2018

I can receive the message:
Received message = 42["p","0,10"]

But if I try to emit anything shorter ex:
["p","0,1"]

The leading 4 is not added, preventing the code from being parsed:

Message size = 52
Before switch Received message = 2["p","0,0"]

Note that the message size reports wrong.

Is this a limitation of Socket.io or something wrong in the library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant