Comparing version 0.8.3 to 0.8.4
@@ -26,4 +26,2 @@ // Open Source Initiative OSI - The MIT License (MIT):Licensing | ||
var HEARTBEAT = 5000; | ||
//Adds a timeout on a channel - if a response isn't received within a certain | ||
@@ -38,2 +36,7 @@ //amount of time, we execute the callback with a timeout error. | ||
channel.register(function(event, next) { | ||
clearTimeout(runner); | ||
next(); | ||
}); | ||
//Clear the timeout when the channel is closed | ||
@@ -40,0 +43,0 @@ channel.on("closing", function() { |
{ | ||
"name": "zerorpc", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"main": "./index.js", | ||
@@ -5,0 +5,0 @@ "author": "dotCloud <opensource@dotcloud.com>", |
@@ -96,3 +96,3 @@ // Open Source Initiative OSI - The MIT License (MIT):Licensing | ||
var rpcClient = new zerorpc.Client(); | ||
var rpcClient = new zerorpc.Client({ timeout: 5 }); | ||
rpcClient.connect("tcp://localhost:4242"); | ||
@@ -99,0 +99,0 @@ |
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
50171
14
1151