20.3 TCP Sockets
You use TCP sockets primarily when you want to make sure that two applications residing on different systems communicate with each other. As with all socket solutions, you have maximum flexibility when it comes to the question of which types of applications communicate with each other. The two endpoints of the connection—the client and the server—don’t necessarily have to be implementations in Node.js. For example, your server could be implemented in Java and the client in Node.js. But any other combination is also conceivable. Moreover, the two applications don’t need to run on the same system. However, you can still communicate between different applications within the same system. The prerequisite for this type of communication ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access