As Yuri said, you need to configure socket.io to use redis pubsub first.

One alternative is that you should use built-in module such as
https://github.com/topcloud/socketcluster, I saves your time and help you
avoid un-expecting troubles.


On Sat, Apr 26, 2014 at 5:21 PM, Yuri Karadzhov <[email protected]>wrote:

> You need to configure pub, sub and client for socket.io:
>
> var pub = redis.createClient();
> var sub = redis.createClient();
> var client = redis.createClient();
>
> and pass them to socket.io
>
> io.set('store', new io.RedisStore({
>   redisSub : sub,
>   redisPub: pub,
>   redisClient: client
> }));
>
>
>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Nguyen Hai Duy
Mobile : 0914 72 1900
Skype: nguyenhd2107
Yahoo: nguyenhd_lucky

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to