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
- #stop_all_streams ⇒ Object
- #stream_from(broadcasting, callback = nil, coder: nil) ⇒ 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 |
#stop_all_streams ⇒ Object
21 22 23 |
# File 'lib/anycable/rails/actioncable/channel.rb', line 21 def stop_all_streams connection.socket.unsubscribe_from_all identifier end |
#stream_from(broadcasting, callback = nil, coder: nil) ⇒ Object
16 17 18 19 |
# File 'lib/anycable/rails/actioncable/channel.rb', line 16 def stream_from(broadcasting, callback = nil, coder: nil) raise ArgumentError('Unsupported') if callback.present? || coder.present? || block_given? 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 |