socket.io-redis
Advanced tools
Comparing version 0.1.3 to 0.1.4
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 |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
10009
8
213
64
0
+ Addedbenchmark@1.0.0(transitive)
+ Addedcomponent-emitter@1.1.2(transitive)
+ Addeddebug@1.0.2(transitive)
+ Addedms@0.6.2(transitive)
+ Addedobject-keys@1.0.1(transitive)
+ Addedsocket.io-adapter@0.3.1(transitive)
+ Addedsocket.io-parser@2.2.2(transitive)
- Removedsocket.io-adapter@0.3.0(transitive)
- Removedsocket.io-parser@2.2.0(transitive)
Updatedsocket.io-adapter@0.3.1