Class: ActionView::Component::Live::LiveChannel

Inherits:
ActionCable::Channel::Base
  • Object
show all
Defined in:
app/channels/action_view/component/live/live_channel.rb

Instance Method Summary collapse

Instance Method Details

#notifyObject



13
14
# File 'app/channels/action_view/component/live/live_channel.rb', line 13

def notify
end

#subscribedObject



5
6
7
# File 'app/channels/action_view/component/live/live_channel.rb', line 5

def subscribed
  stream_from "action_view:component:live:live:#{params[:component]}:#{params[:id]}"
end

#unsubscribedObject



9
10
11
# File 'app/channels/action_view/component/live/live_channel.rb', line 9

def unsubscribed
  # Any cleanup needed when channel is unsubscribed
end