I'm building a tcp server. I have some questions:
In nodejs, when socket receive data event:
Do need to take care whether the packet order is correct, in other words, how the tcp packets reassemble is handled? Is it handled already by the underlying OS or Nodejs? Or I need to do reassemble myself?
Will nodejs take care the packet boundary automatically? Meaning, is the possible:
- receive multiple packets in one data event
- one packet spread in multiple data events