Created
May 30, 2010 11:08
-
-
Save yannski/418950 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
class LongPollHttpServer < EM::Connection | |
def receive_data(data) | |
# some code here to extract path and params from the HTTP request | |
case path | |
when '/join' | |
when '/send' | |
when '/recv' | |
# long polling stuff | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment