marionette-client
Advanced tools
Comparing version 1.5.8 to 1.6.0-alpha.1
@@ -56,4 +56,5 @@ var wire = require('json-wire-protocol'); | ||
options = options || {}; | ||
var interval = options.interval || 1000; | ||
var timeout = options.timeout || 10000; | ||
var interval = options.interval || 0; | ||
var timeout = options.timeout || 30000; | ||
var socketTimeout = 1000; | ||
@@ -66,3 +67,4 @@ var sockit = new sockittome.Sockit(); | ||
// to avoid socket misuse. | ||
sockit.setPollTimeout(interval); | ||
sockit.setPollTimeout(socketTimeout); | ||
var socketConfig = { host: this.host, port: this.port }; | ||
@@ -72,3 +74,3 @@ function probeSocket() { | ||
debug('probing socket'); | ||
sockit.connect({ host: this.host, port: this.port }); | ||
sockit.connect(socketConfig); | ||
@@ -84,2 +86,4 @@ var s = sockit.read(16).toString(); | ||
debug('exception when probing socket', e.message); | ||
// Above read _may_ fail so it is important to close the socket... | ||
sockit.close(); | ||
} | ||
@@ -86,0 +90,0 @@ // timeout. Abort. |
{ | ||
"name": "marionette-client", | ||
"version": "1.5.8", | ||
"version": "1.6.0-alpha.1", | ||
"main": "lib/marionette/index", | ||
@@ -11,3 +11,3 @@ "description": "Marionette Javascript Client", | ||
"socket-retry-connect": "~0.0.1", | ||
"sockit-to-me": "0.2.3" | ||
"sockit-to-me": "0.2.4" | ||
}, | ||
@@ -14,0 +14,0 @@ "scripts": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
97257
3150
2
+ Addedsockit-to-me@0.2.4(transitive)
- Removedsockit-to-me@0.2.3(transitive)
Updatedsockit-to-me@0.2.4