Switch to longpolling from eventsource