UNPKG

nsyslog

Version:

Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations

12 lines (9 loc) 220 B
// pubber.js var zmq = require('zeromq'), sock = zmq.socket('pull'); sock.connect('tcp://127.0.0.1:3000'); console.log('Publisher bound to port 9999'); sock.on('message',msg=>{ console.log(`${msg}`); });