I am using msgpack5 in a browser and when I try to pack new Uint8Array([1, 2, 3]) I get the following payload 0x83 0xa1 0x30 0x01 0xa1 0x31 0x02 0xa1 0x32 0x03 which is a map. I expected to get a bin8. Looking at the code it appears that binX would work for Buffer but because msgpack5 is wrapped in a library/module the Buffer does not seem to be available outside the library.
I am using msgpack5 in a browser and when I try to pack
new Uint8Array([1, 2, 3])
I get the following payload0x83 0xa1 0x30 0x01 0xa1 0x31 0x02 0xa1 0x32 0x03
which is a map. I expected to get abin8
. Looking at the code it appears thatbinX
would work for Buffer but because msgpack5 is wrapped in a library/module the Buffer does not seem to be available outside the library.