2020-04-30 08:09:45 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ApplicationCable
|
|
|
|
class Channel < ActionCable::Channel::Base
|
2020-06-01 14:08:07 -04:00
|
|
|
include Logging
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def notification_payload(_)
|
|
|
|
super.merge!(params: params.except(:channel))
|
|
|
|
end
|
|
|
|
|
|
|
|
def request
|
|
|
|
connection.request
|
|
|
|
end
|
2020-04-30 08:09:45 -04:00
|
|
|
end
|
|
|
|
end
|