Class: ActionCable::Channel::Base
- Inherits:
-
Object
- Object
- ActionCable::Channel::Base
- Defined in:
- lib/anycable/rails/actioncable/channel.rb
Overview
:nodoc:
Instance Method Summary collapse
- #handle_subscribe ⇒ Object
- #start_periodic_timers ⇒ Object
- #stop_all_streams ⇒ Object
- #stop_periodic_timers ⇒ Object
- #stream_from(broadcasting, _callback = nil, _options = {}) ⇒ Object
- #subscribe_to_channel ⇒ Object
Instance Method Details
#handle_subscribe ⇒ Object
8 |
# File 'lib/anycable/rails/actioncable/channel.rb', line 8 alias handle_subscribe subscribe_to_channel |
#start_periodic_timers ⇒ Object
16 17 18 |
# File 'lib/anycable/rails/actioncable/channel.rb', line 16 def start_periodic_timers # noop end |
#stop_all_streams ⇒ Object
28 29 30 |
# File 'lib/anycable/rails/actioncable/channel.rb', line 28 def stop_all_streams connection.socket.unsubscribe_from_all identifier end |
#stop_periodic_timers ⇒ Object
20 21 22 |
# File 'lib/anycable/rails/actioncable/channel.rb', line 20 def stop_periodic_timers # noop end |
#stream_from(broadcasting, _callback = nil, _options = {}) ⇒ Object
24 25 26 |
# File 'lib/anycable/rails/actioncable/channel.rb', line 24 def stream_from(broadcasting, _callback = nil, = {}) connection.socket.subscribe identifier, broadcasting end |
#subscribe_to_channel ⇒ Object
12 13 14 |
# File 'lib/anycable/rails/actioncable/channel.rb', line 12 def subscribe_to_channel # noop end |