我正在为 socket.io
使用 node.js
,redis store
。
在执行 PUB-SUB 时,我可以看到 channel = dispatch
因此需要了解此 dispath
channel ,它如何连接到我的 Node 进程以及 PUB SUB 在内部如何工作。
已经经历了redis.io pub-sub文档但无法获取调度 channel 。 任何其他文件都可以提供帮助。
谢谢。
最佳答案
我认为您也在为 socket.io
使用 Redis 存储? Here是 socket.io
中创建 dispatch
channel 的相关代码。
关于node.js - 了解 redis-store pub-sub 中的 "dispatch" channel ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20904888/