Sha256: 9db5ce100338881da4a3aab78906fc730d13a57640cd265b46a4777843c26c51

Contents?: true

Size: 291 Bytes

Versions: 9

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

module CableReady
  class Stream < ActionCable::Channel::Base
    include CableReady::StreamIdentifier

    def subscribed
      locator = verified_stream_identifier(params[:identifier])
      locator.present? ? stream_from(locator) : reject
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cable_ready-5.0.0.pre9 app/channels/cable_ready/stream.rb
cable_ready-5.0.0.pre8 app/channels/cable_ready/stream.rb
cable_ready-5.0.0.pre7 app/channels/cable_ready/stream.rb
cable_ready-5.0.0.pre6 app/channels/cable_ready/stream.rb
cable_ready-5.0.0.pre5 app/channels/cable_ready/stream.rb
cable_ready-5.0.0.pre4 app/channels/cable_ready/stream.rb
cable_ready-5.0.0.pre3 app/channels/cable_ready/stream.rb
cable_ready-5.0.0.pre2 app/channels/cable_ready/stream.rb
cable_ready-5.0.0.pre1 app/channels/cable_ready/stream.rb