Skip to content

Commit 3059a9d

Browse files
committed
[api] Worker responds to data now
1 parent e248716 commit 3059a9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/forever/worker.js

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ Worker.prototype.start = function (cb) {
3838
socket.data(['ping'], function () {
3939
socket.send(['pong']);
4040
});
41+
42+
socket.data(['data'], function () {
43+
socket.send(['data'], self.monitor.data);
44+
});
4145
});
4246

4347
findSocket(self.sockPath, function (err, sock) {

0 commit comments

Comments
 (0)