channel.rb 286 Bytes
Newer Older
1 2 3 4
# frozen_string_literal: true

module ApplicationCable
  class Channel < ActionCable::Channel::Base
5 6 7 8 9 10 11 12 13 14 15
    include Logging

    private

    def notification_payload(_)
      super.merge!(params: params.except(:channel))
    end

    def request
      connection.request
    end
16 17
  end
end