In onmessage, just use a BinaryXmlElementReader instead of buffer, bufferOffset and structureDecoder. BinaryXmlElementReader handles multple binary XML objects in the same packet, and is not limited to a buffer of 10000 bytes.
In onmessage, just use a BinaryXmlElementReader instead of buffer, bufferOffset and structureDecoder.
BinaryXmlElementReader handles multple binary XML objects in the same packet, and is not limited to a buffer of 10000 bytes.

wentaoshang/NDN.JS,wentaoshang/NDN-on-Node,wentaoshang/NDN.JS,wentaoshang/NDN-on-Node