Permalink
Browse files

[doc] fixed resolver sequence task example

  • Loading branch information...
1 parent b35b052 commit 86dd463cbf20ed0dda533cb3fae8b62fc42c3287 @agnat committed Dec 29, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 doc/pages/user_guide.ejs
View
@@ -161,12 +161,13 @@ bc. var browser = mdns.createBrowser(mdns.tcp('http'), {resolverSequence: sequen
And of course you can write your own tasks:
-bc. var MCHammer = function MCHammer(options) {
+bc. function MCHammer(options) {
+ options = options || {};
return function MCHammer(service, next) {
console.log('STOP!');
setTimeout(function() {
console.log('hammertime...');
- service.hammertime = new Date();
+ service.hammerTime = new Date();
next();
}, options.delay || 1000);
}

0 comments on commit 86dd463

Please sign in to comment.