-
Notifications
You must be signed in to change notification settings - Fork 56
Possible wrong examples in doc? #29
Copy link
Copy link
Open
Description
I tried hours by using the examples, not running at all. Then I find out maybe the example should call send in Discover()'s callback function. Please check.
var Discover = require('node-discover');
var d = Discover(function(){
//this will success.
var success = d.send("someChannel", { message : "oh..." });
});
//outside the callback will cause destination array is undefined inside networks.js:153
// var success = d.send("someChannel", { message : "oh..." });
//also I try to running start() @ this point, it will emit a error "address already bind", cause Discover() already called one, maybe some prevention code should be here to accept multiply start() calls?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels