Node.js TCP Input Buffering

I'm not sure I got this right yet, but as I understand it, when I attach a handler to an event data, it gives me all the data that it received so far. The problem is how I handle the buffering of this data, since Node.js can give me less than 4 bytes at a time (which I need at least), especially when there will be several simultaneous requests?

+3
source share
1 answer

All Articles