View Code? Open in Web Editor
NEW
node TCP Socket client/server communication fundamental concept
node-tcpsocket's Introduction
node-TcpSocket client/server communicatoin fundamental concept
- The code simply uses the node TCP net server and Socket object to create a communication stream between client and server.
- This fundamental concept is being used in express/socket.io frameworks to build chat applications
- Run the file on a terminal as server:
node tcpSocket_communication.js
- Open other terminals as clients using:
nc localhost 9090
- Start communication
node-tcpsocket's People
Watchers