Sha256: de9ff8c8b1b4fd8a9b6aa0bb88846cbb8b32e2e5bfdaafa3bc598d57d83556e6

Contents?: true

Size: 224 Bytes

Versions: 6

Compression:

Stored size: 224 Bytes

Contents

class MessagesChannel < ApplicationCable::Channel
  def subscribed
    stream_from "conversation_#{params['conversation_id']}_channel"
  end

  def unsubscribed
    # Any cleanup needed when channel is unsubscribed
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
self-auth-rails-0.1.6 app/channels/messages_channel.rb
self-auth-rails-0.1.5 app/channels/messages_channel.rb
self-auth-rails-0.1.4 app/channels/messages_channel.rb
self-auth-rails-0.1.3 app/channels/messages_channel.rb
self-auth-rails-0.1.2 app/channels/messages_channel.rb
self-auth-rails-0.1.1 app/channels/messages_channel.rb