Closed freddi301 closed 3 years ago
solved with
const { id, result } = CBOR.decode(Buffer.from(event.data));
Got this too -- difficult error message and it makes basically no sense (in my opinion).
Fun stuff!
in the node10
branch, i've added support for decoding typed arrays and ArrayBuffers, which should make this problem go away, mostly.
OK, this should work as of v6.0.0. Please re-open this ticket or file another one if you want it to work differently than it does.