Sha256: 55710dea148e5bbff95db0d1ef9bef8207310c5701d0f9f95efcd41377584b93
Contents?: true
Size: 449 Bytes
Versions: 3
Compression:
Stored size: 449 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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
faye-0.8.11 | lib/faye/transport/local.rb |
face-faye-0.8.9 | lib/faye/transport/local.rb |
faye-0.8.9 | lib/faye/transport/local.rb |