Skip to content

Commit

Permalink
Add brief docs around server callback function sig
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Burry committed Sep 16, 2014
1 parent 987116d commit 7aabdcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ function loadBackend(config, name) {
}

// Load and init the server from the servers/ directory.
// The callback mimics the dgram 'message' event parameters (msg, rinfo)
// msg: the message received by the server. may contain more than one metric
// rinfo: contains remote address information and message length
// (attributes are .address, .port, .family, .size - you're welcome)
function startServer(config, name, callback) {
var servermod = require(name);

Expand Down

0 comments on commit 7aabdcf

Please sign in to comment.