Sha256: 22cb146fa1225be273da1931bafc6882134f17cf25f42d8a9df2e155f0a7c930

Contents?: true

Size: 352 Bytes

Versions: 6

Compression:

Stored size: 352 Bytes

Contents

module Faye
  
  class Transport::Local < Transport
    def self.usable?(endpoint)
      endpoint.is_a?(Server)
    end
    
    def batching?
      false
    end
    
    def request(message, timeout)
      @endpoint.process(message, true) { |responses| receive(responses) }
    end
  end
  
  Transport.register 'in-process', Transport::Local
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
faye-0.6.8 lib/faye/transport/local.rb
faye-0.6.7 lib/faye/transport/local.rb
faye-0.6.6 lib/faye/transport/local.rb
faye-0.6.5 lib/faye/transport/local.rb
faye-0.6.4 lib/faye/transport/local.rb
faye-0.6.3 lib/faye/transport/local.rb