creationix / msgpack-js

The msgpack protocol implemented in pure javascript.
http://msgpack.org/
MIT License
253 stars 48 forks source link

Make it possible to decode streams of messages #4

Open tarruda opened 11 years ago

tarruda commented 11 years ago
creationix commented 7 years ago

Looks neat, do you still want this merged? Not sure how I missed this PR.

tarruda commented 7 years ago

Feel free to merge it, but the msgpack spec has evolved and now has a way to distinguish between byte and text strings, so I wouldn't use this library. https://github.com/mcollina/msgpack5 implements the latest version.

In any case, there's a way to design a msgpack parser that is fully reentrant without backtracking(rolling back to previous parse position in case of missing data). This is one of the reasons I have created https://github.com/tarruda/libmpack, but didn't get the time to put together a node.js binding yet.