Skip to content

Commit

Permalink
v5.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jondubois committed Jan 2, 2017
1 parent c9944f2 commit b361ce5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 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": "5.2.2",
"version": "5.2.3",
"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 = '5.2.2';
module.exports.version = '5.2.3';
4 changes: 4 additions & 0 deletions lib/scsocketcreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ function destroy(options) {
}
}
var multiplexId = getMultiplexId(opts);
var socket = _connections[multiplexId];
if (socket) {
socket.disconnect();
}
delete _connections[multiplexId];
}

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": "5.2.2",
"version": "5.2.3",
"homepage": "http://socketcluster.io",
"contributors": [
{
Expand Down
6 changes: 5 additions & 1 deletion socketcluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports.destroy = function (options) {

module.exports.connections = SCSocketCreator.connections;

module.exports.version = '5.2.2';
module.exports.version = '5.2.3';

},{"./lib/scsocket":5,"./lib/scsocketcreator":6,"sc-emitter":18}],3:[function(require,module,exports){
(function (global){
Expand Down Expand Up @@ -1290,6 +1290,10 @@ function destroy(options) {
}
}
var multiplexId = getMultiplexId(opts);
var socket = _connections[multiplexId];
if (socket) {
socket.disconnect();
}
delete _connections[multiplexId];
}

Expand Down
8 changes: 4 additions & 4 deletions socketcluster.min.js

Large diffs are not rendered by default.

0 comments on commit b361ce5

Please sign in to comment.