Comparing version 0.7.1 to 0.7.2
@@ -581,3 +581,3 @@ 'use strict'; | ||
var headerHost = serverUrl.hostname; | ||
// Append port number to Host and Origin header, only if specified in the url | ||
// Append port number to Host header, only if specified in the url | ||
// and non-default | ||
@@ -597,3 +597,2 @@ if (serverUrl.port) { | ||
'Host': headerHost, | ||
'Origin': headerHost, | ||
'Sec-WebSocket-Version': options.value.protocolVersion, | ||
@@ -670,3 +669,3 @@ 'Sec-WebSocket-Key': key | ||
self.emit('error', error); | ||
cleanupWebsocketResources.call(this, error); | ||
cleanupWebsocketResources.call(self, error); | ||
}); | ||
@@ -683,3 +682,3 @@ | ||
cleanupWebsocketResources.call(this, error); | ||
cleanupWebsocketResources.call(self, error); | ||
}); | ||
@@ -686,0 +685,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "simple to use, blazing fast and thoroughly tested websocket client, server and console for node.js, up-to-date against RFC-6455", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"license": "MIT", | ||
@@ -29,4 +29,4 @@ "keywords": [ | ||
"optionalDependencies": { | ||
"bufferutil": "1.0.x", | ||
"utf-8-validate": "1.0.x" | ||
"bufferutil": "1.1.x", | ||
"utf-8-validate": "1.1.x" | ||
}, | ||
@@ -37,3 +37,3 @@ "devDependencies": { | ||
"expect.js": "0.3.x", | ||
"mocha": "2.0.x", | ||
"mocha": "2.2.x", | ||
"should": "4.3.x", | ||
@@ -40,0 +40,0 @@ "tinycolor": "0.0.x" |
# ws: a node.js websocket library | ||
[![Build Status](https://travis-ci.org/einaros/ws.svg?branch=master)](https://travis-ci.org/einaros/ws) | ||
[![Build Status](https://travis-ci.org/websockets/ws.svg?branch=master)](https://travis-ci.org/websockets/ws) | ||
@@ -8,3 +8,3 @@ `ws` is a simple to use WebSocket implementation, up-to-date against RFC-6455, | ||
Passes the quite extensive Autobahn test suite. See http://einaros.github.com/ws | ||
Passes the quite extensive Autobahn test suite. See http://websockets.github.com/ws | ||
for the full reports. | ||
@@ -139,2 +139,9 @@ | ||
### Browserify users | ||
When including ws via a browserify bundle, ws returns global.WebSocket which has slightly different API. | ||
You should use the standard WebSockets API instead. | ||
https://developer.mozilla.org/en-US/docs/WebSockets/Writing_WebSocket_client_applications#Availability_of_WebSockets | ||
### Other examples | ||
@@ -158,7 +165,7 @@ | ||
See the doc/ directory for Node.js-like docs for the ws classes. | ||
See [`/doc/ws.md`](https://github.com/websockets/ws/blob/master/doc/ws.md) for Node.js-like docs for the ws classes. | ||
## Changelog | ||
We're using the GitHub `releases` for changelog entries. | ||
We're using the GitHub [`releases`](https://github.com/websockets/ws/releases) for changelog entries. | ||
@@ -165,0 +172,0 @@ ## License |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
99052
195
4
2939