Re: [nodejs] error writing binary data to TCP socket.

2018-01-07 Thread Matt Sergeant
This has been fixed since. I don't know when. I have Node 9.3 and it produces a Buffer. On Tue, Jan 2, 2018 at 4:18 PM, Stephen James wrote: > Using electron I am trying to write out some bytes on a TCP socket. I am > using Buffer.from to convert to buffer before calling

[nodejs] error writing binary data to TCP socket.

2018-01-03 Thread Stephen James
Using electron I am trying to write out some bytes on a TCP socket. I am using Buffer.from to convert to buffer before calling write, but am still getting the above error. I have simplified it down to just creating an empty ArrayBuffer and calling Buffer.from var abuff = new ArrayBuffer(8 +