UNPKG

nsyslog

Version:

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

14 lines (11 loc) 373 B
// pubber.js var zmq = require('zeromq'), sock = zmq.socket('pub'); sock.bindSync('tcp://127.0.0.1:9999'); console.log('Publisher bound to port 9999'); setInterval(function(){ console.log('sending a multipart message envelope'); sock.send(['mi canal', JSON.stringify({a:"paco",b:"pedro"})]); //sock.send(JSON.stringify({a:"paco",b:"pedro"})); }, 10);