Class: MessagesChannel

Inherits:
ApplicationCable::Channel show all
Defined in:
app/channels/messages_channel.rb

Instance Method Summary collapse

Instance Method Details

#subscribedObject



2
3
4
# File 'app/channels/messages_channel.rb', line 2

def subscribed
  stream_from "conversation_#{params['conversation_id']}_channel"
end

#unsubscribedObject



6
7
8
# File 'app/channels/messages_channel.rb', line 6

def unsubscribed
  # Any cleanup needed when channel is unsubscribed
end