Module: EchoServer

Defined in:
lib/statsd/echos.rb

Instance Method Summary collapse

Instance Method Details

#post_initObject



8
9
10
# File 'lib/statsd/echos.rb', line 8

def post_init
  puts "-- someone connected to the server!"
end

#receive_data(data) ⇒ Object



12
13
14
15
# File 'lib/statsd/echos.rb', line 12

def receive_data data
  puts data
  send_data ">>> you sent: #{data}"
end