examples/echo_server.rb in ruby_skynet-0.5.0 vs examples/echo_server.rb in ruby_skynet-0.6.0
- old
+ new
@@ -5,13 +5,9 @@
# Log trace information to a log file
SemanticLogger::Logger.default_level = :trace
SemanticLogger::Logger.appenders << SemanticLogger::Appender::File.new('echo_server.log')
-# Specify Port and Hostname to listen for requests on
-RubySkynet::Server.port = 2020
-RubySkynet::Server.hostname = '127.0.0.1'
-
# Just echo back any parameters received when the echo method is called
class EchoService
include RubySkynet::Service
# Methods implemented by this service