yal-server

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i yal-server

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • segment-admin
  • tjholowaychuk