Permalink
Browse files

add exit() to HWM example

  • Loading branch information...
1 parent e24aadd commit 4835ce067f062053917aa24d62398434349e904d @tj committed Jan 1, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 examples/hwm/index.js
View
@@ -29,6 +29,7 @@ push.on('flush', function(msgs){
pull.on('message', function(msg){
console.log('recv %s', msg);
+ if ('10' == msg.toString()) process.exit();
});
pull.bind(3000, function(){

0 comments on commit 4835ce0

Please sign in to comment.