Write ArrayBuffer on WS message #795
Answered
by
uNetworkingAB
matiaslopezd
asked this question in
Q&A
-
Hi! Does anyone know how to write a chunk of file with I tried: message(ws, message, isBinary) {
const writeStream = fs.createWriteStream(path, { encoding: 'binary' });
writeStream.write(Buffer.from(message));
} The output file is empty 🤔 @uNetworkingAB |
Beta Was this translation helpful? Give feedback.
Answered by
uNetworkingAB
Aug 29, 2022
Replies: 1 comment 1 reply
-
I guess you need to (deep) copy the arrayBuffer before passing it to write |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
matiaslopezd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess you need to (deep) copy the arrayBuffer before passing it to write