We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When parsing multiple messages, the _handleData falls into this else case: https://github.com/sebastianseilund/node-json-socket/blob/master/lib/json-socket.js#L107
which will take a substring of the message based on the size defined before the message.
However, in the event of having international characters, the use of byteLength instead of string length will make the substring too long: https://github.com/sebastianseilund/node-json-socket/blob/master/lib/json-socket.js#L159
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When parsing multiple messages, the _handleData falls into this else case:
https://github.com/sebastianseilund/node-json-socket/blob/master/lib/json-socket.js#L107
which will take a substring of the message based on the size defined before the message.
However, in the event of having international characters, the use of byteLength instead of string length will make the substring too long:
https://github.com/sebastianseilund/node-json-socket/blob/master/lib/json-socket.js#L159
The text was updated successfully, but these errors were encountered: