You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current version of msgpack.decode requests a Buffer instance instead of a native Uint8Array instance as a chunk. Buffer has some of utility methods compared to Uint8Array's.
I guess msgpack.decode(Buffer(new Uint8Array(data)) would work.
By the way, the module was started when node.js was v0.12. It seems that Buffer implementation is changed since io.js. The module may have better to support Uint8Array. It'd fast on browsers.
I tracked that down to the following method in decode-buffer.js:
I think the buffer assignment has to be replaced to:
The text was updated successfully, but these errors were encountered: