2020-05-24 23:13:21 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ApplicationCable
|
|
|
|
class Channel < ActionCable::Channel::Base
|
2020-06-23 00:09:42 +05:30
|
|
|
include Logging
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def notification_payload(_)
|
|
|
|
super.merge!(params: params.except(:channel))
|
|
|
|
end
|
|
|
|
|
|
|
|
def request
|
|
|
|
connection.request
|
|
|
|
end
|
2020-05-24 23:13:21 +05:30
|
|
|
end
|
|
|
|
end
|