Comparing version 0.0.5 to 0.0.6
@@ -63,2 +63,3 @@ var crypto = require('crypto'); | ||
this.serverConfig = serverConfig; | ||
this.readHandshake(httpRequest); | ||
}; | ||
@@ -65,0 +66,0 @@ |
@@ -102,7 +102,4 @@ var extend = require('./utils').extend; | ||
WebSocketServer.prototype.handleUpgrade = function(request, socket, head) { | ||
var wsRequest = new WebSocketRequest(socket, request, this.config); | ||
wsRequest.once('requestAccepted', this._handlers.requestAccepted); | ||
try { | ||
wsRequest.readHandshake(request); | ||
var wsRequest = new WebSocketRequest(socket, request, this.config); | ||
} | ||
@@ -113,2 +110,4 @@ catch(e) { | ||
} | ||
wsRequest.once('requestAccepted', this._handlers.requestAccepted); | ||
@@ -115,0 +114,0 @@ if (!this.config.autoAcceptConnections && this.listeners('request').length > 0) { |
@@ -6,3 +6,3 @@ { | ||
"author": "Brian McKelvey <brian@worlize.com>", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
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
252295