faye-websocket
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -0,1 +1,6 @@ | ||
### 0.7.2 / 2013-12-29 | ||
* Make sure the `close` event is emitted by clients on Node v0.10 | ||
### 0.7.1 / 2013-12-03 | ||
@@ -2,0 +7,0 @@ |
@@ -23,12 +23,5 @@ // API references: | ||
this._stream.setTimeout(0); | ||
this._stream.setNoDelay(true); | ||
this._driver.io.write(body); | ||
API.call(this, options); | ||
['error', 'end'].forEach(function(event) { | ||
this._stream.on(event, function() { self._finalize('', 1006) }); | ||
}, this); | ||
process.nextTick(function() { | ||
@@ -35,0 +28,0 @@ self._driver.start(); |
@@ -26,2 +26,16 @@ var Stream = require('stream').Stream, | ||
this._stream.setTimeout(0); | ||
this._stream.setNoDelay(true); | ||
['close', 'end'].forEach(function(event) { | ||
this._stream.on(event, function() { self._finalize('', 1006) }); | ||
}, this); | ||
this._stream.on('error', function(error) { | ||
var event = new Event('error', {message: 'Network error: ' + self.url + ': ' + error.message}); | ||
event.initEvent('error', false, false); | ||
self.dispatchEvent(event); | ||
self._finalize('', 1006); | ||
}); | ||
this._driver.on('open', function(e) { self._open() }); | ||
@@ -28,0 +42,0 @@ this._driver.on('message', function(e) { self._receiveMessage(e.data) }); |
@@ -34,17 +34,5 @@ var util = require('util'), | ||
this._stream = connection; | ||
this._stream.setTimeout(0); | ||
this._stream.setNoDelay(true); | ||
if (!secure) this._stream.on('connect', onConnect); | ||
API.call(this, options); | ||
this._stream.on('end', function() { self._finalize('', 1006) }); | ||
this._stream.on('error', function(error) { | ||
var event = new Event('error', {message: 'Network error: ' + url + ': ' + error.message}); | ||
event.initEvent('error', false, false); | ||
self.dispatchEvent(event); | ||
self._finalize('', 1006); | ||
}); | ||
}; | ||
@@ -51,0 +39,0 @@ util.inherits(Client, API); |
@@ -8,3 +8,3 @@ { "name" : "faye-websocket" | ||
, "version" : "0.7.1" | ||
, "version" : "0.7.2" | ||
, "engines" : {"node": ">=0.4.0"} | ||
@@ -11,0 +11,0 @@ , "main" : "./lib/faye/websocket" |
@@ -159,3 +159,3 @@ # faye-websocket | ||
* `maxLength` - the maximum allowed size of incoming message frames, in bytes. | ||
The default value is `2^30 - 1`, or 1 byte short of 1 GiB. | ||
The default value is `2^26 - 1`, or 1 byte short of 64 MiB. | ||
* `ping` - an integer that sets how often the WebSocket should send ping | ||
@@ -162,0 +162,0 @@ frames, measured in seconds |
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
30680
411