EventMachine demo code