Control characters as delimiters

Posted by Gio Borje on Stack Overflow See other posts from Stack Overflow or by Gio Borje
Published on 2010-05-18T05:16:54Z Indexed on 2010/05/18 6:21 UTC
Read the original article Hit count: 256

I have a nodejs TCP server and a client. Basic network communication happens. Client sends "data + STX_CHARACTER + data + ETX_CHARACTER" (just an example).

How do I split the string using the STX Control Character as a delimiter or how do I reference the character at all in Javascript.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about special-characters