module Slanger::Service

Public Instance Methods

run() click to toggle source
# 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() click to toggle source
# File lib/slanger/service.rb, line 13
def stop
  EM.stop if EM.reactor_running?
end