Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 26bbc0cf8c
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.291 kB
require 'eventmachine'
module EchoServer
def post_init
puts "-- someone connected to the echo server!"
end
def receive_data(data)
send_data ">>> you sent: #{data}"
end
end
EM.run do
EM.start_server("127.0.0.1", 8081, EchoServer)
puts 'running echo server on 8081'
end
Jump to Line
Something went wrong with that request. Please try again.