10 lines
267 B
JavaScript
10 lines
267 B
JavaScript
var client = require("../index").createClient(),
|
|
util = require("util");
|
|
|
|
client.monitor(function (err, res) {
|
|
console.log("Entering monitoring mode.");
|
|
});
|
|
|
|
client.on("monitor", function (time, args) {
|
|
console.log(time + ": " + util.inspect(args));
|
|
});
|