Socket
Book a DemoInstallSign in
Socket

yal-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yal-server

extensible log server for YAL

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

yal

FAQs

Package last updated on 18 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts