Sha256: 5fe7a9dbb3d0536fedfb142a49f2a4ddd5c5afa0ef1c7b1ef35ebce46881ed47
Contents?: true
Size: 463 Bytes
Versions: 4
Compression:
Stored size: 463 Bytes
Contents
module Faye class Transport::Local < Transport def self.usable?(client, endpoint, &callback) callback.call(endpoint.is_a?(Server)) end def batching? false end def request(message, timeout) message = Faye.copy_object(message) @endpoint.process(message, true) do |responses| receive(Faye.copy_object(responses)) end end end Transport.register 'in-process', Transport::Local end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
faye-0.8.8 | lib/faye/transport/local.rb |
faye-0.8.6 | lib/faye/transport/local.rb |
faye-0.8.5 | lib/faye/transport/local.rb |
faye-0.8.4 | lib/faye/transport/local.rb |