ProtoMan is a useful framework to create your own network protocol for different purposes, something's like RPC, tunnel and so on.
You can install protoman vim NPM:
npm install protoman
You may want to create a server which supports your own protocol, here is an example below:
var net = ;var ProtoMan =var server = net;server;
Then you can write a client to access this server and use
sum method to figure out.
var net = ;var ProtoMan = ;var client = net;