Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

socket.io-redis

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socket.io-redis - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

Makefile

8

History.md
0.1.4 / 2014-11-25
==================
* increased socket.io-adapter version to 0.3.1
* syntax
* readme: Update badges
* added Makefile
0.1.3 / 2014-05-30

@@ -3,0 +11,0 @@ ==================

12

index.js

@@ -10,2 +10,3 @@

var Adapter = require('socket.io-adapter');
var Emitter = require('events').EventEmitter;
var debug = require('debug')('socket.io-redis');

@@ -96,7 +97,12 @@

if (args[0] && args[0].nsp === undefined)
args[0].nsp = '/'
if (args[0] && args[0].nsp === undefined) {
args[0].nsp = '/';
}
if (!args[0] || args[0].nsp != this.nsp.name) return debug('ignore different namespace')
if (!args[0] || args[0].nsp != this.nsp.name) {
return debug('ignore different namespace');
}
args.push(true);
this.broadcast.apply(this, args);

@@ -103,0 +109,0 @@ };

{
"name": "socket.io-redis",
"version": "0.1.3",
"version": "0.1.4",
"description": "",
"repository": {
"type": "git",
"url": "git@github.com:Automattic/socket.io-redis.git"
},
"scripts": {

@@ -13,3 +17,3 @@ "test": "mocha"

"msgpack-js": "0.3.0",
"socket.io-adapter": "0.3.0"
"socket.io-adapter": "0.3.1"
},

@@ -16,0 +20,0 @@ "devDependencies": {

# socket.io-redis
[![Build Status](https://secure.travis-ci.org/Automattic/socket.io-redis.png)](http://travis-ci.org/Automattic/socket.io-redis)
[![NPM version](https://badge.fury.io/js/socket.io-redis.png)](http://badge.fury.io/js/socket.io-redis)
[![Build Status](https://travis-ci.org/Automattic/socket.io-redis.svg?branch=master)](https://travis-ci.org/Automattic/socket.io-redis)
[![NPM version](https://badge.fury.io/js/socket.io-redis.svg)](http://badge.fury.io/js/socket.io-redis)

@@ -47,4 +47,18 @@ ## How to use

##### Adapter with password
If you need to create a redisAdapter to a redis instance that has a password, use pub/sub options.
Example:
```
var pub = redis.createClient(port, host, {auth_pass:"PASSWORD"});
var sub = redis.createClient(port, host, {detect_buffers: true, auth_pass:"PASSWORD"} );
io.adapter( redisAdapter({pubClient: pub, subClient: sub}) );
```
## License
MIT
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