yal-server

extensible log server for YAL

npm install yal-server
1 downloads in the last week
4 downloads in the last month

yal-server

Extensible log server for YAL.

Installation

$ npm install yal-server

Example

Running YAL with a simple stdout plugin:

var Server = require('yal-server');
var server = new Server;

server.bind('tcp://localhost:5000');
server.use(stdout);

function stdout(server){
  server.on('message', function(msg){
    console.log(msg);
  });
};

Plugins

Plugins are simply functions that accept the server instance, so you can listen on "message" events and do whatever you like.

License

MIT

npm loves you