How to use the bolt.Node function in bolt

To help you get started, we’ve selected a few bolt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nodester / watcher / examples / master.js View on Github external
var bolt = require('bolt');

var mesh = new bolt.Node({
  delimiter:'::',
  host: 'localhost',
  port:  6379,
  silent:true
});
mesh.start()
mesh.on('nodester::dieing',function(app){
 console.log('')
 console.log(app.PID)  
 console.log(app.code)
})