Simple networking for Node.js. Designed to have a simple API (similar to Socket.IO), but for talking to other instances rather than to browsers.
When writing distributed Node.js applications, you probably want your instances to be able to talk to each other over the network. If we wanted to do this quickly, with a super-simple API, we would use something like the excellent Socket.IO. However, Socket.IO is designed for talking to browsers, so it does not support sending binary data (without converting it to base64, which is slow and big), and it sends everything through Websocket.
This library addresses this, and works very similar to Socket.IO, but is geared more for Node-to-Node communication. One of the main differences is the ability to send Node Buffer objects, which contain binary data.
var sock = ;
server = sock;server;
client = sock;client;
All you need to do is
npm install sock.