Created
June 26, 2012 18:29
-
-
Save Poincare/2997763 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'eventmachine' | |
class Echo < EM::Connection | |
def receive_data(data) | |
send_data(data) | |
end | |
end | |
EM.run do | |
EM.start_server("0.0.0.0", 1337, Echo) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment