Skip to content

Commit

Permalink
v6.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jondubois committed Jul 16, 2017
1 parent 0f29f10 commit 760c538
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "socketcluster-client",
"main": "socketcluster.js",
"version": "6.2.1",
"version": "6.2.2",
"homepage": "https://github.com/SocketCluster/socketcluster-client",
"description": "SocketCluster JavaScript client",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module.exports.destroy = function (options) {

module.exports.connections = SCSocketCreator.connections;

module.exports.version = '6.2.1';
module.exports.version = '6.2.2';
6 changes: 3 additions & 3 deletions lib/scsocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ SCSocket.prototype._changeToUnauthenticatedState = function () {
}
};

SCSocket.prototype._changeToAuthenticatedState = function (signedAuthToken, skipSubscriptionProcessing) {
SCSocket.prototype._changeToAuthenticatedState = function (signedAuthToken) {
this.signedAuthToken = signedAuthToken;
this.authToken = this._extractAuthTokenData(signedAuthToken);

Expand All @@ -358,7 +358,7 @@ SCSocket.prototype._changeToAuthenticatedState = function (signedAuthToken, skip
signedAuthToken: signedAuthToken,
authToken: this.authToken
};
if (!skipSubscriptionProcessing) {
if (!this.preparingPendingSubscriptions) {
this.processPendingSubscriptions();
}

Expand Down Expand Up @@ -490,7 +490,7 @@ SCSocket.prototype._onSCOpen = function (status) {
this.pingTimeout = status.pingTimeout;
this.transport.pingTimeout = this.pingTimeout;
if (status.isAuthenticated) {
this._changeToAuthenticatedState(status.authToken, true);
this._changeToAuthenticatedState(status.authToken);
} else {
this._changeToUnauthenticatedState();
}
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": "socketcluster-client",
"description": "SocketCluster JavaScript client",
"version": "6.2.1",
"version": "6.2.2",
"homepage": "http://socketcluster.io",
"contributors": [
{
Expand Down
8 changes: 4 additions & 4 deletions socketcluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ module.exports.destroy = function (options) {

module.exports.connections = SCSocketCreator.connections;

module.exports.version = '6.2.1';
module.exports.version = '6.2.2';

},{"./lib/scsocket":6,"./lib/scsocketcreator":7,"sc-emitter":16}],4:[function(require,module,exports){
(function (global){
Expand Down Expand Up @@ -884,7 +884,7 @@ SCSocket.prototype._changeToUnauthenticatedState = function () {
}
};

SCSocket.prototype._changeToAuthenticatedState = function (signedAuthToken, skipSubscriptionProcessing) {
SCSocket.prototype._changeToAuthenticatedState = function (signedAuthToken) {
this.signedAuthToken = signedAuthToken;
this.authToken = this._extractAuthTokenData(signedAuthToken);

Expand All @@ -897,7 +897,7 @@ SCSocket.prototype._changeToAuthenticatedState = function (signedAuthToken, skip
signedAuthToken: signedAuthToken,
authToken: this.authToken
};
if (!skipSubscriptionProcessing) {
if (!this.preparingPendingSubscriptions) {
this.processPendingSubscriptions();
}

Expand Down Expand Up @@ -1029,7 +1029,7 @@ SCSocket.prototype._onSCOpen = function (status) {
this.pingTimeout = status.pingTimeout;
this.transport.pingTimeout = this.pingTimeout;
if (status.isAuthenticated) {
this._changeToAuthenticatedState(status.authToken, true);
this._changeToAuthenticatedState(status.authToken);
} else {
this._changeToUnauthenticatedState();
}
Expand Down
2 changes: 1 addition & 1 deletion socketcluster.min.js

Large diffs are not rendered by default.

0 comments on commit 760c538

Please sign in to comment.