@charlieskidsauthorMar 24.2019 — #I just need to know whether it is possible or not. My JavaScript application needs to interface to an existing system via a socket that requires messages to be prefixed with a single byte 0xFF (which indicates new message format).
@rootMar 25.2019 — #JavaScript has not got that capability, it is browser based, if you want to have that capability, you need Java, a totally different language to JavaScript.
client.write('xFF0014SOR999999','binary'); // Using 'binary' prevents byte conversion client.destroy(); // kill client after server's response // careful for large transmissions of chunks of data });