Here are the codes of communication between processes being client and server udp and tcp, and p2p.
# Clone this repository
$ git clone https://github.com/Josehpequeno/UDP-TCP-Nodejs.git
# Access the project folder in the cmd / terminal
$ cd UDP-TCP-Nodejs
# Install the dependencies
$ npm install
#UDP server
$ npm run udpserver
#UDP client
$ npm run udpclient
#TCP server
$ npm run tcpserver
#TCP client
$ npm run tcpclient
# MulticastPeer (P2P)
$ npm run p2p