Comparing version 0.0.10 to 0.0.11
@@ -7,3 +7,3 @@ module.exports = { | ||
"request" : require('./WebSocketRequest'), | ||
"version" : "0.0.10" | ||
"version" : "0.0.11" | ||
}; |
@@ -128,3 +128,3 @@ var extend = require('./utils').extend; | ||
method: 'GET', | ||
path: this.url.path | ||
path: this.url.pathname | ||
}; | ||
@@ -157,3 +157,3 @@ | ||
var handleRequestError = function(error) { | ||
s.emit('error', error); | ||
s.emit('connectFailed', error); | ||
} | ||
@@ -170,3 +170,3 @@ client.on('error', handleRequestError); | ||
var req = this.request = client.request(this.url.path, reqHeaders); | ||
var req = this.request = client.request(this.url.pathname, reqHeaders); | ||
@@ -173,0 +173,0 @@ req.on('response', function(response) { |
@@ -6,3 +6,3 @@ { | ||
"author": "Brian McKelvey <brian@worlize.com>", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
@@ -112,3 +112,3 @@ WebSocket Client & Server Implementation for Node | ||
client.on('error', function(error) { | ||
client.on('connectFailed', function(error) { | ||
console.log("Connect Error: " + error.toString()); | ||
@@ -115,0 +115,0 @@ }); |
@@ -41,7 +41,3 @@ #!/usr/bin/env node | ||
client.on('connectFailed', function(errorDescription) { | ||
console.log("Connect Error: " + errorDescription); | ||
}); | ||
client.on('error', function(error) { | ||
client.on('connectFailed', function(error) { | ||
console.log("Client Error: " + error.toString()) | ||
@@ -48,0 +44,0 @@ }); |
@@ -28,3 +28,3 @@ #!/usr/bin/env node | ||
mirrorClient.on('error', function(error) { | ||
mirrorClient.on('connectFailed', function(error) { | ||
console.log("Connect Error: " + error.toString()); | ||
@@ -60,3 +60,3 @@ }); | ||
incrementClient.on('error', function(error) { | ||
incrementClient.on('connectFailed', function(error) { | ||
console.log("Connect Error: " + error.toString()); | ||
@@ -63,0 +63,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
262518
6904