Skip to content

Commit

Permalink
Release 0.9.16-patch1
Browse files Browse the repository at this point in the history
Built from original 0.9.16 and patched with pull requests socketio#516, socketio#529
and socketio#531.
  • Loading branch information
Gabriel Montes committed Jul 2, 2014
1 parent a749581 commit 0a41587
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
17 changes: 9 additions & 8 deletions dist/socket.io.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Socket.IO.js build:0.9.16, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */
/*! Socket.IO.js build:0.9.16-patch1, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */

var io = ('undefined' === typeof module ? {} : module.exports);
(function() {
Expand All @@ -25,7 +25,7 @@ var io = ('undefined' === typeof module ? {} : module.exports);
* @api public
*/

io.version = '0.9.16';
io.version = '0.9.16-patch1';

/**
* Protocol implemented.
Expand Down Expand Up @@ -328,7 +328,7 @@ var io = ('undefined' === typeof module ? {} : module.exports);
if (additional.hasOwnProperty(prop) && util.indexOf(seen, prop) < 0) {
if (typeof target[prop] !== 'object' || !depth) {
target[prop] = additional[prop];
seen.push(additional[prop]);
seen.push(prop);
} else {
util.merge(target[prop], additional[prop], depth - 1, seen);
}
Expand Down Expand Up @@ -2030,21 +2030,25 @@ var io = ('undefined' === typeof module ? {} : module.exports);
return self.reconnectionTimer = setTimeout(maybeReconnect, 1000);
}

if (self.reconnectionAttempts++ >= maxAttempts) {
if (maxAttempts >= 0 && self.reconnectionAttempts++ >= maxAttempts) {
if (!self.redoTransports) {
self.on('connect_failed', maybeReconnect);
self.options['try multiple transports'] = true;
self.transports = self.origTransports;
self.transport = self.getTransport();
self.redoTransports = true;
self.connect();
self.publish('reconnecting', self.reconnectionDelay, self.reconnectionAttempts);
self.reconnectionTimer = setTimeout(maybeReconnect, self.reconnectionDelay);
} else {
self.publish('reconnect_failed');
reset();
}
} else {
if (self.reconnectionDelay < limit) {
if (self.reconnectionDelay * 2 <= limit) {
self.reconnectionDelay *= 2; // exponential back off
} else {
self.reconnectionDelay = limit;
}

self.connect();
Expand Down Expand Up @@ -3867,7 +3871,4 @@ var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="Sho
, this
);

if (typeof define === "function" && define.amd) {
define([], function () { return io; });
}
})();
4 changes: 2 additions & 2 deletions dist/socket.io.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/io.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @api public
*/

io.version = '0.9.16';
io.version = '0.9.16-patch1';

/**
* Protocol implemented.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "socket.io-client"
, "description": "Socket.IO client for the browser and node.js"
, "version": "0.9.16"
, "version": "0.9.16-patch1"
, "main" : "./lib/io.js"
, "browserify": "./dist/socket.io.js"
, "homepage": "http://socket.io"
Expand Down

0 comments on commit 0a41587

Please sign in to comment.