Class: Faye::LocalTransport

Inherits:
Transport show all
Defined in:
lib/faye/network/transport.rb

Constant Summary

Constants included from Logging

Faye::Logging::DEFAULT_LOG_LEVEL, Faye::Logging::LOG_LEVELS

Instance Attribute Summary

Attributes included from Logging

#log_level

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Transport

#connection_type, get, #initialize, #receive, register, #retry_block, #send, supported_connection_types

Methods included from Logging

#log

Constructor Details

This class inherits a constructor from Faye::Transport

Class Method Details

.usable?(endpoint) ⇒ Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/faye/network/transport.rb', line 101

def self.usable?(endpoint)
  endpoint.is_a?(Server)
end

Instance Method Details

#request(message, timeout) ⇒ Object



105
106
107
# File 'lib/faye/network/transport.rb', line 105

def request(message, timeout)
  @endpoint.process(message, true) { |responses| receive(responses) }
end