wsc-redis
A redis broker for ws-cluster. It allows you to scale ws-cluster
horizontally across multiple machines.
Installation
$ npm install wsc-redis --save
Usage
var wsc = ;var Broker = ; var server = wsc;
API
new Broker()
Return a redis broker instance. new Broker()
accepts these arguments:
redis.createClient([options])
redis.createClient(unix_socket[, options])
redis.createClient(redis_url[, options])
redis.createClient(port[, host][, options])
The arguments will be passed to redis.createClient()
.