Skip to content

Commit

Permalink
[api] Worker responds to data now
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Dec 9, 2011
1 parent e248716 commit 3059a9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/forever/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ Worker.prototype.start = function (cb) {
socket.data(['ping'], function () {
socket.send(['pong']);
});

socket.data(['data'], function () {
socket.send(['data'], self.monitor.data);
});
});

findSocket(self.sockPath, function (err, sock) {
Expand Down

0 comments on commit 3059a9d

Please sign in to comment.