Class: MessagesChannel
- Inherits:
-
ApplicationCable::Channel
- Object
- ActionCable::Channel::Base
- ApplicationCable::Channel
- MessagesChannel
- Defined in:
- app/channels/messages_channel.rb
Instance Method Summary collapse
Instance Method Details
#subscribed ⇒ Object
2 3 4 |
# File 'app/channels/messages_channel.rb', line 2 def subscribed stream_from "conversation_#{params['conversation_id']}_channel" end |
#unsubscribed ⇒ Object
6 7 8 |
# File 'app/channels/messages_channel.rb', line 6 def unsubscribed # Any cleanup needed when channel is unsubscribed end |