Method: ActionChannels::Channel#process_message
- Defined in:
- lib/action_channels/channel.rb
#process_message(message) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/action_channels/channel.rb', line 40 def () ActionChannels.logger.debug "The channel ##{self.name} received a message #{message.inspect}" case .type when 'subscribe' on_subscribe ., .details when 'unsubscribe' on_unsubscribe ., .details when 'publish' on_publish ., .details else ., .type end end |