Comparing version 2.0.9 to 2.0.10
@@ -52,1 +52,27 @@ | ||
}; | ||
PubSocket.prototype.sendv2 = function(data, cb){ | ||
var socks = this.socks; | ||
var len = socks.length; | ||
var sock; | ||
var buf = this.pack([data]); | ||
var i = 0; | ||
socks.forEach(function(sock) { | ||
if (sock.writable) | ||
sock.write(buf, function() { | ||
i++; | ||
if (i == len) | ||
process.nextTick(cb); | ||
}); | ||
else { | ||
i++; | ||
if (i == len) | ||
process.nextTick(cb); | ||
} | ||
}); | ||
return this; | ||
}; |
{ | ||
"name": "pm2-axon", | ||
"description": "High-level messaging & socket patterns implemented in pure js", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "author": { |
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
39354
1052