Skip to content

Commit

Permalink
v5.2.2 - Expose the connections object publicly
Browse files Browse the repository at this point in the history
  • Loading branch information
jondubois committed Jan 2, 2017
1 parent efb0727 commit c9944f2
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 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.1",
"version": "5.2.2",
"homepage": "https://github.com/SocketCluster/socketcluster-client",
"description": "SocketCluster JavaScript client",
"authors": [
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ module.exports.destroy = function (options) {
return SCSocketCreator.destroy(options);
};

module.exports.version = '5.2.1';
module.exports.connections = SCSocketCreator.connections;

module.exports.version = '5.2.2';
3 changes: 2 additions & 1 deletion lib/scsocketcreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,6 @@ function destroy(options) {

module.exports = {
connect: connect,
destroy: destroy
destroy: destroy,
connections: _connections
};
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.1",
"version": "5.2.2",
"homepage": "http://socketcluster.io",
"contributors": [
{
Expand Down
7 changes: 5 additions & 2 deletions socketcluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ module.exports.destroy = function (options) {
return SCSocketCreator.destroy(options);
};

module.exports.version = '5.2.1';
module.exports.connections = SCSocketCreator.connections;

module.exports.version = '5.2.2';

},{"./lib/scsocket":5,"./lib/scsocketcreator":6,"sc-emitter":18}],3:[function(require,module,exports){
(function (global){
Expand Down Expand Up @@ -1293,7 +1295,8 @@ function destroy(options) {

module.exports = {
connect: connect,
destroy: destroy
destroy: destroy,
connections: _connections
};

}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
Expand Down
8 changes: 4 additions & 4 deletions socketcluster.min.js

Large diffs are not rendered by default.

0 comments on commit c9944f2

Please sign in to comment.