As a result of cettia/cettia-javascript-client#9, it turns out that it is better to accept typed arrays as well as Buffer to handle binary data. That means, when determining if the given object is binary, ArrayBuffer.isView as well as Buffer.isBuffer should be used.
But, transport's binary event should accept Buffer only.
As a result of cettia/cettia-javascript-client#9, it turns out that it is better to accept typed arrays as well as Buffer to handle binary data. That means, when determining if the given object is binary,
ArrayBuffer.isViewas well asBuffer.isBuffershould be used.But, transport's
binaryevent should acceptBufferonly.