Socket
Socket
Sign inDemoInstall

socket.io-adapter

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socket.io-adapter - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

8

History.md
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 @@ ==================

@@ -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 @@ *

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc