Class: ActionCable::Channel::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/anycable/rails/actioncable/channel.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#handle_subscribeObject



8
# File 'lib/anycable/rails/actioncable/channel.rb', line 8

alias handle_subscribe subscribe_to_channel

#start_periodic_timersObject



16
17
18
# File 'lib/anycable/rails/actioncable/channel.rb', line 16

def start_periodic_timers
  # noop
end

#stop_all_streamsObject



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_timersObject



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, _options = {})
  connection.socket.subscribe identifier, broadcasting
end

#subscribe_to_channelObject



12
13
14
# File 'lib/anycable/rails/actioncable/channel.rb', line 12

def subscribe_to_channel
  # noop
end