Adding event queue to the comet
Adding example of using event