如何动态发布和订阅频道?

时间:2012-06-07 05:48:05

标签: javascript node.js redis socket.io

//服务器设置....

//Store using Redis ..


 this is the part of the code, now i have to send the stored data to other clients connected,the case is 'n' no.of application with 'n' no.of clients, so i have to create channels here dynamically. am asking u to help me by giving ideas for creating dynamic channel name for pub/sub.

1 个答案:

答案 0 :(得分:2)

这不是Redis处理的东西。您需要通过应用程序层保护对Redis pub / sub的访问。如果您希望允许人们将直接连接到Redis并仍然保护每个用户的频道,我相信您运气不佳。