Skip to content

Instantly share code, notes, and snippets.

@davidlee
Created March 15, 2009 08:28
Show Gist options
  • Save davidlee/79367 to your computer and use it in GitHub Desktop.
Save davidlee/79367 to your computer and use it in GitHub Desktop.
EventMachine::run do
# Policy Socket Server
EventMachine::start_server( Socky::HOST,
Socky::Policy::PORT,
Socky::Policy::Server )
# XML Socket Server
EventMachine::start_server( Socky::HOST,
Socky::XmlSocket::PORT,
Socky::XmlSocket::Server )
# Raw Socket Server
EventMachine::start_server( Socky::HOST,
Socky::Socket::PORT,
Socky::Socket::Server )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment