lib/rails_band/action_cable/event/transmit_subscription_rejection.rb



# frozen_string_literal: true

module RailsBand
  module ActionCable
    module Event
      # A wrapper for the event that is passed to `transmit_subscription_rejection.action_cable`.
      class TransmitSubscriptionRejection < BaseEvent
        def channel_class
          @channel_class ||= @event.payload.fetch(:channel_class)
        end
      end
    end
  end
end