Sha256: 757c344d00f581003047310bd219d7afb012bdb20307c5d85a84b92208a61085

Contents?: true

Size: 435 Bytes

Versions: 8

Compression:

Stored size: 435 Bytes

Contents

# Be sure to restart your server when you modify this file. Action Cable runs in a loop that does not support auto reloading.
<% module_namespacing do -%>
class <%= class_name %>Channel < ApplicationCable::Channel
  def subscribed
    # stream_from "some_channel"
  end

  def unsubscribed
    # Any cleanup needed when channel is unsubscribed
  end
<% actions.each do |action| -%>

  def <%= action %>
  end
<% end -%>
end
<% end -%>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/actioncable-5.0.0/lib/rails/generators/channel/templates/channel.rb
actioncable-5.0.0.1 lib/rails/generators/channel/templates/channel.rb
actioncable-5.0.0 lib/rails/generators/channel/templates/channel.rb
actioncable-5.0.0.rc2 lib/rails/generators/channel/templates/channel.rb
actioncable-5.0.0.racecar1 lib/rails/generators/channel/templates/channel.rb
actioncable-5.0.0.rc1 lib/rails/generators/channel/templates/channel.rb
actioncable-5.0.0.beta4 lib/rails/generators/channel/templates/channel.rb
actioncable-5.0.0.beta3 lib/rails/generators/channel/templates/channel.rb