protobuf.io
protocol.io is a simple socket server which sending and recieving data with protocol buffers.The project is inspired by socket.io
Installation
npm install protobuf.io --save
or yarn add protobuf.io
How to use
// create the new server with options,// port is the listening port, default is 3000// protocolPath is your proto file path, default is './proto/main.proto'const protobuf = var server = port: 3000 protocolPath: './proto/main.proto' // server error handlingserver // when server start listeningserver server // start the serverserverstart
STILL UNDER CONSTRUCTION...