Sha256: bd6e1e20b7f06162e2ea20bc88d19779a2577512463b1ac60a130071150b95f1

Contents?: true

Size: 415 Bytes

Versions: 5

Compression:

Stored size: 415 Bytes

Contents

require 'network_executive/producer'

module NetworkExecutive
  class Station < Rails::Engine
    class LocalAffiliate
      def initialize
        EM.next_tick do
          NetworkExecutive::Producer.run!
        end
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
network_executive-0.0.8 lib/network_executive/station/local_affiliate.rb
network_executive-0.0.7 lib/network_executive/station/local_affiliate.rb
network_executive-0.0.4 lib/network_executive/station/local_affiliate.rb
network_executive-0.0.3 lib/network_executive/station/local_affiliate.rb
network_executive-0.0.2 lib/network_executive/station/local_affiliate.rb