socket.io-adapter
Advanced tools
Comparing version 0.4.0 to 0.5.0
0.5.0 / 2016-11-20 | ||
================== | ||
* [docs] Fix typo in Readme.md (#37) | ||
* [chore] Bump socket.io-parser to version 2.3.1 (#43) | ||
* [chore] Bump debug to version 2.3.3 (#42) | ||
* [feature] Add clientRooms method (#41) | ||
0.4.0 / 2015-12-03 | ||
@@ -3,0 +11,0 @@ ================== |
13
index.js
@@ -154,2 +154,3 @@ | ||
* @param {Array} explicit set of rooms to check. | ||
* @param {Function} callback | ||
* @api public | ||
@@ -200,2 +201,14 @@ */ | ||
/** | ||
* Gets the list of rooms a given client has joined. | ||
* | ||
* @param {String} socket id | ||
* @param {Function} callback | ||
* @api public | ||
*/ | ||
Adapter.prototype.clientRooms = function(id, fn){ | ||
var rooms = this.sids[id]; | ||
if (fn) process.nextTick(fn.bind(null, null, rooms ? Object.keys(rooms) : null)); | ||
}; | ||
/** | ||
* Room constructor. | ||
@@ -202,0 +215,0 @@ * |
{ | ||
"name": "socket.io-adapter", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"license": "MIT", | ||
@@ -11,5 +11,5 @@ "repository": { | ||
"dependencies": { | ||
"debug": "2.2.0", | ||
"socket.io-parser": "2.2.2" | ||
"debug": "2.3.3", | ||
"socket.io-parser": "2.3.1" | ||
} | ||
} |
@@ -9,3 +9,3 @@ | ||
This module is not intended for end-user usage, but can be used as an | ||
interface to inheirt from from other adapters you might want to build. | ||
interface to inherit from from other adapters you might want to build. | ||
@@ -12,0 +12,0 @@ As an example of an adapter that builds on top of this, please take a look |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7798
217
1
+ Addeddebug@2.3.3(transitive)
+ Addedjson3@3.3.2(transitive)
+ Addedms@0.7.2(transitive)
+ Addedsocket.io-parser@2.3.1(transitive)
- Removedbenchmark@1.0.0(transitive)
- Removeddebug@0.7.4(transitive)
- Removedjson3@3.2.6(transitive)
- Removedsocket.io-parser@2.2.2(transitive)
Updateddebug@2.3.3
Updatedsocket.io-parser@2.3.1