Skip to content

Instantly share code, notes, and snippets.

@yannski
Created May 30, 2010 11:08
Show Gist options
  • Save yannski/418950 to your computer and use it in GitHub Desktop.
Save yannski/418950 to your computer and use it in GitHub Desktop.
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