Module: Slanger::Service
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 |
# File 'lib/slanger/service.rb', line 6 def run Slanger::Config[:require].each { |f| require f } Thin::Logging.silent = true Rack::Handler::Thin.run Slanger::Api::Server, Host: Slanger::Config.api_host, Port: Slanger::Config.api_port Slanger::WebSocketServer.run end |
#stop ⇒ Object
13 14 15 |
# File 'lib/slanger/service.rb', line 13 def stop EM.stop if EM.reactor_running? end |