class RSpec::Rails::Matchers::ActionCable::HaveBroadcastedTo

def stream

def stream
  @stream ||= case @target
              when String
                @target
              when Symbol
                @target.to_s
              else
                check_channel_presence
                @channel.broadcasting_for(@target)
              end
end