【发布时间】:2012-10-11 14:43:30
【问题描述】:
我找不到任何关于使用 Pusher 创建频道的明确信息。 这仅仅是在客户端订阅或在服务器上推送事件时的隐式操作吗?
class HelloController < ApplicationController
def hello
#does this create a channel "named 'test-channel'"?
Pusher['test-channel'].trigger('test_event', { :hello => 'world' })
end
end
如果是这样,可用频道的数量是否有限制?
我提出问题的原因是我想为每个用户创建一个独特的频道,并且在客户端关闭该频道之后。
但这可能不是一个好主意;-)
谢谢
【问题讨论】:
标签: pusher