Method: ActionCable::Channel::Base#unsubscribe_from_channel

Defined in:
actioncable/lib/action_cable/channel/base.rb

#unsubscribe_from_channelObject

Called by the cable connection when it’s cut, so the channel has a chance to cleanup with callbacks. This method is not intended to be called directly by the user. Instead, override the #unsubscribed callback.



202
203
204
205
206
# File 'actioncable/lib/action_cable/channel/base.rb', line 202

def unsubscribe_from_channel # :nodoc:
  run_callbacks :unsubscribe do
    unsubscribed
  end
end