Comparing version 1.0.1 to 1.0.2
14
index.js
@@ -44,5 +44,2 @@ /** | ||
// Emit to other nodes | ||
pubClient.publish(evt, JSON.stringify(args)); | ||
// Emit to this one | ||
@@ -54,2 +51,13 @@ var handlers = channels[evt]; | ||
} | ||
// Emit to other nodes | ||
return new Promise(function(resolve, reject){ | ||
pubClient.publish(evt, JSON.stringify(args), function(err){ | ||
if(err){ | ||
reject(err); | ||
}else{ | ||
resolve(); | ||
} | ||
}); | ||
}); | ||
} | ||
@@ -56,0 +64,0 @@ |
{ | ||
"name": "disturbed", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A distributed event emitter, both for client and nodejs servers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6799
164