pm2/examples/null.js
2015-08-03 15:54:21 +02:00

15 lines
389 B
JavaScript

var pmx = require('pmx');
var http = require('http');
http.createServer(function(req, res) {
res.end('Thanks');
}).listen(5445);
pmx.action('db:test', {comment: 'Simply test'}, function(reply) {
reply({test: "WOWOWOWOWOW", length: 12});
});
pmx.action('throw', {comment: 'Simply test'}, function(reply) {
pmx.notify(new Error({test: "WOWOWOWOWOW", length: 12}));
});