wscat icon indicating copy to clipboard operation
wscat copied to clipboard

Support for binary response / hex output:

Open franky436 opened this issue 2 years ago • 1 comments

Before “ws.send(programOptions.execute);” add: ws.binaryType = "arraybuffer";

For hex output use: wsConsole.print(Console.Types.Incoming, buf2hex(data), Console.Colors.Blue);

p.s. function buf2hex(buffer) { // buffer is an ArrayBuffer return [...new Uint8Array(buffer)] .map(x => x.toString(16).padStart(2, '0')) .join(''); }

franky436 avatar Jan 01 '23 12:01 franky436