bin/jschat-server in jschat-0.1.1 vs bin/jschat-server in jschat-0.1.2
- old
+ new
@@ -1,18 +1,9 @@
#!/usr/bin/env ruby
require 'logger'
require 'jschat/server'
+require 'jschat/server-options'
-logger = Logger.new(STDERR)
-logger = Logger.new(STDOUT)
-
-ServerConfig = {
- :port => 6789,
- :ip => '0.0.0.0',
- :logger => logger,
- :max_message_length => 500
-}
-
EM.run do
- EM.start_server ServerConfig[:ip], ServerConfig[:port], JsChat
+ EM.start_server ServerConfig['ip'], ServerConfig['port'], JsChat
end