Class: CableReady::Stream

Inherits:
ActionCable::Channel::Base
  • Object
show all
Includes:
StreamIdentifier
Defined in:
app/channels/cable_ready/stream.rb

Instance Method Summary collapse

Methods included from StreamIdentifier

#signed_stream_identifier, #verified_stream_identifier

Instance Method Details

#subscribedObject



8
9
10
11
# File 'app/channels/cable_ready/stream.rb', line 8

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