module ActionCable::Channel::ChannelStub
Модуль Action Cable Channel Stub
Заглушка stream_from для отслеживания потоков для канала. Добавляет публичные псевдонимы для subscription_confirmation_sent? и subscription_rejected?.
Публичные методы экземпляра
# File actioncable/lib/action_cable/channel/test_case.rb, line 24 def confirmed? subscription_confirmation_sent? end
# File actioncable/lib/action_cable/channel/test_case.rb, line 28 def rejected? subscription_rejected? end
# File actioncable/lib/action_cable/channel/test_case.rb, line 45 def start_periodic_timers; end
Делает периодические таймеры бездействующими
Также проименовано как: stop_periodic_timers
# File actioncable/lib/action_cable/channel/test_case.rb, line 36 def stop_all_streams @_streams = [] end
stop_periodic_timers()
Псевдоним для: start_periodic_timers
# File actioncable/lib/action_cable/channel/test_case.rb, line 32 def stream_from(broadcasting, *) streams << broadcasting end
# File actioncable/lib/action_cable/channel/test_case.rb, line 40 def streams @_streams ||= [] end
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.