Class: AppBooster::HTTPServer

Inherits:
Object
  • Object
show all
Defined in:
lib/appbooster-server.rb

Constant Summary collapse

DEFAULT_PORT =
3000
DEFAULT_ADDRESS =
'0.0.0.0'

Class Method Summary collapse

Class Method Details

.run(address = DEFAULT_ADDRESS, port = DEFAULT_PORT) ⇒ Object



23
24
25
26
27
# File 'lib/appbooster-server.rb', line 23

def self.run(address = DEFAULT_ADDRESS, port = DEFAULT_PORT)
  EM::run do
    EM::start_server(address, port, HTTPHandler)
  end
end