Class: A4Tools::Transporter

Inherits:
Object
  • Object
show all
Includes:
EventGenerator
Defined in:
lib/acres_client.rb

Direct Known Subclasses

HTTPTransporter, WebSocketTransporter

Instance Method Summary collapse

Methods included from EventGenerator

#on, #passthrough, #signal

Constructor Details

#initializeTransporter

Returns a new instance of Transporter.



33
34
35
# File 'lib/acres_client.rb', line 33

def initialize
  @callbacks = {}
end

Instance Method Details

#connect(timeout = 5) ⇒ Object



37
38
39
40
# File 'lib/acres_client.rb', line 37

def connect(timeout=5)
  signal(:connect)
  true
end

#disconnectObject



42
43
44
# File 'lib/acres_client.rb', line 42

def disconnect
  signal(:disconnect)
end