washo4evr / Socket.io-v1.x-Library

Socket.io Library for Arduino
108 stars 58 forks source link

Short messages are unable to be parsed #51

Open JasXSL opened 6 years ago

JasXSL commented 6 years ago

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?