When using the tcp nodes, does node red convert ascii text to bytes before writing them to the stream? Or do I need to convert the string to a byte buffer before sending the payload ?
It is all the same - they are all bytes down the wire.
Typically sending strings is fine but if you need to be 100% sure, send a Buffer
object.
PS, very easy to test - add a pair of TCP-in - TCP out nodes and test it for yourself
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.