Class: NetworkExecutive::Station::LocalAffiliate

Inherits:
Object
  • Object
show all
Defined in:
lib/network_executive/station/local_affiliate.rb

Instance Method Summary collapse

Constructor Details

#initializeLocalAffiliate

Returns a new instance of LocalAffiliate.



6
7
8
9
10
# File 'lib/network_executive/station/local_affiliate.rb', line 6

def initialize
  EM.next_tick do
    NetworkExecutive::Producer.run!
  end
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/network_executive/station/local_affiliate.rb', line 12

def call( env )
  if Faye::EventSource.eventsource?( env )
    Viewer.change_channel env
  else
    [ 403, nil, [] ]
  end
end