Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f0678e6c91 | |||
| ce0f81c8d5 | |||
| e2090ce019 |
@@ -1,3 +1,13 @@
|
||||
=== 0.3.1 / 2012-01-16
|
||||
|
||||
* Call setNoDelay(true) on net.Socket objects to reduce latency
|
||||
|
||||
|
||||
=== 0.3.0 / 2012-01-13
|
||||
|
||||
* Add support for EventSource connections
|
||||
|
||||
|
||||
=== 0.2.0 / 2011-12-21
|
||||
|
||||
* Add support for Sec-WebSocket-Protocol negotiation
|
||||
|
||||
@@ -19,6 +19,9 @@ var EventSource = function(request, response, options) {
|
||||
this._ping = options.ping || this.DEFAULT_PING;
|
||||
this._retry = options.retry || this.DEFAULT_RETRY;
|
||||
|
||||
this._stream.setTimeout(0);
|
||||
this._stream.setNoDelay(true);
|
||||
|
||||
var scheme = isSecureConnection(request) ? 'https:' : 'http:';
|
||||
this.url = scheme + '//' + request.headers.host + request.url;
|
||||
|
||||
|
||||
@@ -35,6 +35,9 @@ var WebSocket = function(request, socket, head, supportedProtos) {
|
||||
this.request = request;
|
||||
this._stream = request.socket;
|
||||
|
||||
this._stream.setTimeout(0);
|
||||
this._stream.setNoDelay(true);
|
||||
|
||||
var scheme = isSecureConnection(request) ? 'wss:' : 'ws:';
|
||||
this.url = scheme + '//' + request.headers.host + request.url;
|
||||
this.readyState = API.CONNECTING;
|
||||
|
||||
@@ -24,6 +24,9 @@ var Client = function(url, protocols) {
|
||||
this._parser = new HybiParser(this, {masking: true, protocols: protocols});
|
||||
this._stream = connection;
|
||||
|
||||
this._stream.setTimeout(0);
|
||||
this._stream.setNoDelay(true);
|
||||
|
||||
if (!secure) connection.addListener('connect', onConnect);
|
||||
|
||||
connection.addListener('data', function(data) {
|
||||
|
||||
+2
-2
@@ -2,9 +2,9 @@
|
||||
, "description" : "Standards-compliant WebSocket server and client"
|
||||
, "homepage" : "http://github.com/faye/faye-websocket-node"
|
||||
, "author" : "James Coglan <jcoglan@gmail.com> (http://jcoglan.com/)"
|
||||
, "keywords" : ["websocket"]
|
||||
, "keywords" : ["websocket", "eventsource"]
|
||||
|
||||
, "version" : "0.2.0"
|
||||
, "version" : "0.3.1"
|
||||
, "engines" : {"node": ">=0.4.0"}
|
||||
, "main" : "./lib/faye/websocket"
|
||||
, "devDependencies" : {"jsclass": ""}
|
||||
|
||||
Reference in New Issue
Block a user