Action Cable Channel
Stub
將 stream_from
視為 stub 來追蹤頻道串流。為 subscription_confirmation_sent?
和 subscription_rejected?
新增共用別名。
方法
- C
- R
- S
實例共用方法
confirmed?() 連結
來源:顯示 | 於 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 25 def confirmed? subscription_confirmation_sent? end
rejected?() 連結
來源:顯示 | 於 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 29 def rejected? subscription_rejected? end
start_periodic_timers() 連結
使繫結計時器無動作
也別名為:stop_periodic_timers
來源:顯示 | 於 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 46 def start_periodic_timers; end
stop_all_streams() 連結
來源:顯示 | 於 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 37 def stop_all_streams @_streams = [] end
stream_from(broadcasting, *) 連結
來源:顯示 | 於 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 33 def stream_from(broadcasting, *) streams << broadcasting end
streams() 連結
來源:顯示 | 於 GitHub 上
# File actioncable/lib/action_cable/channel/test_case.rb, line 41 def streams @_streams ||= [] end