Module: HttpEchoServer
Instance Method Summary collapse
Instance Method Details
#start(port) ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/http_echo_server.rb', line 21 def start(port) ppid = Process.pid fork do harikari(ppid) EM.run do EventMachine::Protocols::TestConnection.start('localhost', port) end end end |