Module: EventMachine::HandlerSocket

Defined in:
lib/em-handlersocket.rb,
lib/em-handlersocket/client.rb,
lib/em-handlersocket/version.rb

Defined Under Namespace

Classes: Client, Deferrable

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.new(options = {}) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/em-handlersocket.rb', line 7

def self.new(options = {})
  opt = {
    :host => '127.0.0.1',
    :port => '9998'
  }.merge(options)

  EventMachine.connect(opt[:host], opt[:port], EventMachine::HandlerSocket::Client)
end